api

package
v1.0.0-beta Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func New

func New(o APIOpts) *API

func (*API) Start

func (a *API) Start() error

func (*API) Stop

func (a *API) Stop(ctx context.Context) error

type APIOpts

type APIOpts struct {
	APIKey        string
	Debug         bool
	EnableMetrics bool
	ListenAddress string
	Store         store.Store
	Logg          *slog.Logger
	Worker        *worker.WorkerContainer
}

type Validator

type Validator struct {
	ValidatorProvider *validator.Validate
}

func (*Validator) Validate

func (v *Validator) Validate(i interface{}) error

In production we don't expose detailed validation error messages.

Jump to

Keyboard shortcuts

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