query

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllEventTypes

type AllEventTypes struct {
	Action           *string
	PaginationParams PaginationParams
}

type AllEventTypesHandler

type AllEventTypesHandler struct {
	// contains filtered or unexported fields
}

func NewAllEventTypesHandler

func NewAllEventTypesHandler(finder eventTypeFinder) AllEventTypesHandler

func (AllEventTypesHandler) Execute

type AllEvents

type AllEvents struct {
	Params                 AllEventsParams
	CursorPaginationParams CursorPaginationParams
}

type AllEventsHandler

type AllEventsHandler struct {
	// contains filtered or unexported fields
}

func NewAllEventsHandler

func NewAllEventsHandler(finder eventsFinder) AllEventsHandler

func (AllEventsHandler) Execute

type AllEventsParams

type AllEventsParams struct {
	SourceID  domain.ID
	StartDate *time.Time
	EndDate   *time.Time
	ActorID   domain.ID
	ActorName *string
	TargetID  domain.ID
}

type AllSources

type AllSources struct {
	Name       *string
	Pagination PaginationParams
}

type AllSourcesHandler

type AllSourcesHandler struct {
	// contains filtered or unexported fields
}

func NewAllSourcesHandler

func NewAllSourcesHandler(finder sourcesFinder) AllSourcesHandler

func (AllSourcesHandler) Execute

type AllTokens

type AllTokens struct {
	SourceID domain.ID
}

type AllTokensHandler

type AllTokensHandler struct {
	// contains filtered or unexported fields
}

func NewAllTokensHandler

func NewAllTokensHandler(repo domain.TokenRepository) AllTokensHandler

func (AllTokensHandler) Execute

func (h AllTokensHandler) Execute(ctx context.Context, q AllTokens) ([]*domain.Token, error)

type CursorPaginationParams

type CursorPaginationParams struct {
	Limit           *int
	StartFromCursor *string
}

type CursorPaginationResult

type CursorPaginationResult[T any] struct {
	LastItemCursor string
	Data           []T
}

type EventByID

type EventByID struct {
	ID domain.ID
}

type EventByIDHandler

type EventByIDHandler struct {
	// contains filtered or unexported fields
}

func NewEventByIDHandler

func NewEventByIDHandler(repo domain.EventRepository) EventByIDHandler

func (EventByIDHandler) Execute

type EventType

type EventType struct {
	Action                       string
	ShouldValidateMetadataSchema bool
	Versions                     []EventTypeVersion
	CreatedAt                    time.Time
}

type EventTypeByAction

type EventTypeByAction struct {
	Action string
}

type EventTypeByActionHandler

type EventTypeByActionHandler struct {
	// contains filtered or unexported fields
}

func NewEventTypeByActionHandler

func NewEventTypeByActionHandler(finder eventTypeFinder) EventTypeByActionHandler

func (EventTypeByActionHandler) Execute

type EventTypeVersion

type EventTypeVersion struct {
	Version     int
	TargetTypes []string
	Schema      domain.Schema
	CreatedAt   time.Time
}

type Pagination

type Pagination[T any] struct {
	Data        []T
	Total       int
	PerPage     int
	CurrentPage int
	TotalPages  int
}

type PaginationParams

type PaginationParams struct {
	Limit int
	Page  int
}

type SourceByID

type SourceByID struct {
	ID string
}

type SourceByIDHandler

type SourceByIDHandler struct {
	// contains filtered or unexported fields
}

func NewSourceByIDHandler

func NewSourceByIDHandler(finder sourceByIDFinder) SourceByIDHandler

func (SourceByIDHandler) Execute

type UserProfile

type UserProfile struct {
	UserID domain.ID
}

type UserProfileHandler

type UserProfileHandler struct {
	// contains filtered or unexported fields
}

func NewUserProfileHandler

func NewUserProfileHandler(repo domain.UserRepository) UserProfileHandler

func (UserProfileHandler) Execute

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL