server

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: Apache-2.0, MIT Imports: 12 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, assigner *core.Assigner, options ...ServerOption) (*Server, error)

func (*Server) Close

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 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