find

package
v0.8.28 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: Apache-2.0, MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*config) error

Option is a function that sets a value in a config.

func WithHomepage

func WithHomepage(URL string) Option

WithHomepage config for API.

func WithMaxConnections

func WithMaxConnections(maxConnections int) Option

MaxConnections config allowed by server.

func WithReadTimeout

func WithReadTimeout(t time.Duration) Option

WithReadTimeout configures server read timeout.

func WithVersion

func WithVersion(ver string) Option

WithVersion sets the version string used in /health output.

func WithWriteTimeout

func WithWriteTimeout(t time.Duration) Option

WithWriteTimeout configures server write timeout.

type Server

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

func New

func New(listen string, indexer indexer.Interface, registry *registry.Registry, options ...Option) (*Server, error)

func (*Server) Close

func (s *Server) Close() error

func (*Server) RefreshStats

func (s *Server) RefreshStats()

func (*Server) Start

func (s *Server) Start() error

func (*Server) URL

func (s *Server) URL() string

Jump to

Keyboard shortcuts

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