query

package
v0.0.0-...-ead2a4b Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAllApiKeysHandler

func NewAllApiKeysHandler(repo domain.ApiKeyRepository) allApiKeysHandler

func NewAllApplicationsHandler

func NewAllApplicationsHandler(applicationsFinder applicationsFinder) allApplicationsHandler

func NewAllEventTypesHandler

func NewAllEventTypesHandler(eventTypesFinder eventTypesFinder) allEventTypesHandler

func NewApplicationHandler

func NewApplicationHandler(applicationsFinder applicationsFinder) applicationHandler

func NewEnvironmentsHandler

func NewEnvironmentsHandler(envRepo domain.EnvironmentRepository) allEnvironmentsHandler

func NewEventTypeHandler

func NewEventTypeHandler(repo domain.EventTypeRepository) eventTypeHandler

Types

type AllApiKeys

type AllApiKeys struct {
	OrgID         string
	EnvironmentID string
}

type AllApplications

type AllApplications struct {
	PaginationParams
	EnvironmentID string
	OrgID         string
}

type AllEnvironments

type AllEnvironments struct {
	OrgID string
}

type AllEventTypes

type AllEventTypes struct {
	PaginationParams
	OrgID string
}

type Application

type Application struct {
	OrgID         string
	ApplicationID string
}

type EventType

type EventType struct {
	OrgID       string
	EventTypeID string
}

type Paginated

type Paginated[D any] struct {
	Total       int
	PerPage     int
	CurrentPage int
	TotalPages  int
	Data        D
}

type PaginationParams

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

func NewPaginationParams

func NewPaginationParams(page, limit *int) PaginationParams

func (*PaginationParams) Limit

func (p *PaginationParams) Limit() int

func (*PaginationParams) Page

func (p *PaginationParams) Page() int

Jump to

Keyboard shortcuts

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