server

package
v0.0.0-...-0805d90 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfiguredMetaSource

func NewConfiguredMetaSource(name config.MetadataSource, options map[string]interface{}) (meta.Source, error)

NewConfiguredMetaSource creates a metadata source from configuration.

Types

type ErrDuplicateRepo

type ErrDuplicateRepo struct {
	// ID is the offending repository ID.
	ID string
	// Path is the offending repository path.
	Path string
}

ErrDuplicateRepo is an error about a duplicate repository ID.

func (*ErrDuplicateRepo) Error

func (edr *ErrDuplicateRepo) Error() string

Error returns the string representation of the error.

type HandlerCloser

type HandlerCloser interface {
	http.Handler
	io.Closer
}

HandlerCloser is a http.Handler that is notified of the HTTP server shutting down.

func NewConfiguredRouter

func NewConfiguredRouter(cfg *config.Config, logger *zap.Logger) (HandlerCloser, error)

NewConfiguredRouter creates a new router from configuration.

func NewRouter

func NewRouter(repos []repo.Repository, logger *zap.Logger) (HandlerCloser, error)

NewRouter creates a new router from configuration.

Directories

Path Synopsis
api
v1
Package v1 provides primitives to interact with the openapi HTTP API.
Package v1 provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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