service

package
v0.0.0-...-eb6ac32 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: Apache-2.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 Config

type Config struct {
	Host string `envconfig:"default=127.0.0.1"`
	Port int    `envconfig:"default=3000"`
}

Config is used to customize the service configuration.

type HTTPEndpoint

type HTTPEndpoint interface {
	Name() string
	Handle(writer http.ResponseWriter, request *http.Request)
}

HTTPEndpoint is the interface implemented by Asset Store endpoints.

type Service

type Service interface {
	Register(endpoint HTTPEndpoint)
	Start(ctx context.Context) error
}

Service is the interface implemented by Asset Store services.

func New

func New(config Config) Service

New is the constructor that creates a new Asset Store service.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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