server

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OptionsErr = errors.New("invalid options")
	CreateErr  = errors.New("unable to create server")
	CloseErr   = errors.New("unable to close server")
)

Functions

This section is empty.

Types

type Options

type Options struct {
	UnixPath string
	MaxConn  int
	Logger   logging.Logger
}

type Server

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

func New

func New(options *Options) (*Server, error)

func (*Server) Close

func (s *Server) Close() error

func (*Server) Do added in v0.1.1

func (s *Server) Do(ctx context.Context, request *rpc.Request, response *rpc.Response) error

Jump to

Keyboard shortcuts

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