server

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: MPL-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg config.Configuration,
	eventRepo datastore.EventRepository,
	eventDeliveryRepo datastore.EventDeliveryRepository,
	appRepo datastore.ApplicationRepository,
	apiKeyRepo datastore.APIKeyRepository,
	orgRepo datastore.GroupRepository,
	eventQueue queue.Queuer,
	createEventQueue queue.Queuer,
	logger logger.Logger,
	tracer tracer.Tracer,
	cache cache.Cache,
	limiter limiter.RateLimiter) *http.Server

func RegisterDBMetrics added in v0.4.18

func RegisterDBMetrics(app *applicationHandler)

func RegisterQueueMetrics added in v0.4.10

func RegisterQueueMetrics(q queue.Queuer, cfg config.Configuration)

Types

type AuthorizedLogin

type AuthorizedLogin struct {
	Username   string    `json:"username,omitempty"`
	Token      string    `json:"token"`
	ExpiryTime time.Time `json:"expiry_time"`
}

type Response

type Response struct {
	StatusCode int `json:"-"`
}

func (Response) Render

func (res Response) Render(w http.ResponseWriter, r *http.Request) error

type Stub

type Stub struct{}

Stub represents empty json or arbitrary json bodies for our doc annotations

type ViewableConfiguration

type ViewableConfiguration struct {
	Strategy  datastore.StrategyConfiguration  `json:"strategy"`
	Signature datastore.SignatureConfiguration `json:"signature"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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