httpfinderserver

package
v0.0.0-...-403c8b4 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0, MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func New

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

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

func (*Server) Start

func (s *Server) Start() error

func (*Server) URL

func (s *Server) URL() string

type ServerOption

type ServerOption func(*serverConfig) error

ServerOption for httpserver

func ReadTimeout

func ReadTimeout(t time.Duration) ServerOption

ReadTimeout config for API

func WithHomepage

func WithHomepage(URL string) ServerOption

WithHomepage config for API

func WriteTimeout

func WriteTimeout(t time.Duration) ServerOption

WriteTimeout config for API

Jump to

Keyboard shortcuts

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