server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: MIT Imports: 19 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(s *Server) error

ServerOption

func WithAdditionalRPC

func WithAdditionalRPC(fnName string, fn interface{}) Option

func WithDebug

func WithDebug(value bool) Option

func WithPrinter

func WithPrinter(printer printing.Printer) Option

type Server

type Server struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Server represents an instance of the S&D server.

func New

func New(db database.Database, options ...Option) (*Server, error)

New creates a new instance of the S&D server.

func (*Server) Start

func (s *Server) Start(bind string) error

Jump to

Keyboard shortcuts

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