endpoints

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminAPIHandlers added in v0.2.0

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

func NewAdminAPIHandlers added in v0.2.0

func NewAdminAPIHandlers(logger logrus.FieldLogger, client galadrielclient.Client) *AdminAPIHandlers

func (AdminAPIHandlers) GetRelationships added in v0.2.0

func (h AdminAPIHandlers) GetRelationships(echoCtx echo.Context, params admin.GetRelationshipsParams) error

func (AdminAPIHandlers) PatchRelationship added in v0.2.0

func (h AdminAPIHandlers) PatchRelationship(echoCtx echo.Context, relationshipID api.UUID) error

type Config

type Config struct {
	LocalAddress net.Addr // UDS socket address the Harvester will listen on
	Client       galadrielclient.Client
	Logger       logrus.FieldLogger
}

Config represents the configuration of the Harvester Endpoints.

type Endpoints

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

func New

func New(cfg *Config) (*Endpoints, error)

func (*Endpoints) ListenAndServe

func (e *Endpoints) ListenAndServe(ctx context.Context) error

type Server

type Server interface {
	// ListenAndServe starts all endpoint servers and blocks until the context
	// is canceled or any of the endpoints fails to run.
	ListenAndServe(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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