httpfinderserver

package
v0.4.23 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 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) Close added in v0.4.22

func (s *Server) Close() 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 added in v0.4.20

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