server

package
v0.0.0-...-b76d47b Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptionFunc

type OptionFunc func(s *Server)

func Options

func Options(opts ...OptionFunc) OptionFunc

func WithDevice

func WithDevice(dev io.ReadWriter) OptionFunc

func WithTimeout

func WithTimeout(timeout time.Duration) OptionFunc

type Server

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

func New

func New(opts ...OptionFunc) *Server

func (Server) Task

func (srv Server) Task(msg encoding.BinaryMarshaler) error

Jump to

Keyboard shortcuts

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