query

package
v0.26.7 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllIncidents

type AllIncidents struct {
	AccountID domain.ID
	Params    PaginationParams
}

type AllIncidentsHandler

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

func NewAllIncidentsHandler

func NewAllIncidentsHandler(incidentsFinder incidentsFinder) AllIncidentsHandler

func (AllIncidentsHandler) Execute

type AllMonitors

type AllMonitors struct {
	AccountID domain.ID
	Params    PaginationParams
}

type AllMonitorsHandler

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

func NewAllMonitorsHandler

func NewAllMonitorsHandler(monitorsFinder monitorsFinder) AllMonitorsHandler

func (AllMonitorsHandler) Execute

type IncidentByID

type IncidentByID struct {
	ID domain.ID
}

type IncidentByIdHandler

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

func NewIncidentByIdHandler

func NewIncidentByIdHandler(incidentRepository monitor.IncidentRepository) IncidentByIdHandler

func (IncidentByIdHandler) Execute

type MonitorByID

type MonitorByID struct {
	ID domain.ID
}

type MonitorByIdHandler

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

func NewMonitorByIdHandler

func NewMonitorByIdHandler(monitorRepository monitor.Repository) MonitorByIdHandler

func (MonitorByIdHandler) Execute

type MonitorResponseTimeStats

type MonitorResponseTimeStats struct {
	ID          domain.ID
	RangeInDays *int
}

type MonitorResponseTimeStatsHandler

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

func NewMonitorResponseTimeStatsHandler

func NewMonitorResponseTimeStatsHandler(responseTimeFinder responseTimeFinder) MonitorResponseTimeStatsHandler

func (MonitorResponseTimeStatsHandler) Execute

type PaginatedResult

type PaginatedResult[T any] struct {
	Page       int
	PerPage    int
	PageCount  int
	TotalCount int64
	Data       []T
}

type PaginationParams

type PaginationParams struct {
	Page  int
	Limit int
}

func NewPaginationParams

func NewPaginationParams(page, limit *int) PaginationParams

type ResponseTimeStat

type ResponseTimeStat struct {
	Value  int
	Region string
	Date   time.Time
}

type ResponseTimeStatsOptions

type ResponseTimeStatsOptions struct {
	RangeInDays int
	MonitorID   domain.ID
}

type UserByID

type UserByID struct {
	ID domain.ID
}

type UserByIdHandler

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

func NewUserByIdHandler

func NewUserByIdHandler(userRepository account.UserRepository) UserByIdHandler

func (UserByIdHandler) Execute

func (h UserByIdHandler) Execute(ctx context.Context, q UserByID) (*account.User, error)

Jump to

Keyboard shortcuts

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