Skip to content

internal/activity

github.com/gamidoc/backend/internal/activity

Types

Event

type Event struct {

Handler

type Handler struct {

NoopRecorder

type NoopRecorder struct{}

Recorder

type Recorder interface {

RecordFrontendEventInput

type RecordFrontendEventInput struct {

Repository

type Repository interface {

Service

type Service struct {

Functions

Error

func (errInvalidFrontendEventType) Error() string {

Handler.Routes

func (h *Handler) Routes() chi.Router {

NewHandler

func NewHandler(recorder Recorder, tokens *token.Manager, blacklist *token.Blacklist) *Handler {

NewService

func NewService(repository Repository) *Service {

Record

func (NoopRecorder) Record(ctx context.Context, event Event) error {

Service.Record

func (s *Service) Record(ctx context.Context, event Event) error {