servers

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(data []byte) string

in principle JSON will encode binary data as base64, but we do the conversion explicitly just to avoid any potential inconsistencies that might arise in the future...

func EncodeSlice

func EncodeSlice(data [][]byte) []string

in principle JSON will encode binary data as base64, but we do the conversion explicitly just to avoid any potential inconsistencies that might arise in the future...

Types

type Appointments

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

func MakeAppointments

func MakeAppointments(settings *services.Settings) (*Appointments, error)

type Server added in v0.0.6

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

func MakeServer added in v0.0.6

func MakeServer(name string, httpSettings *services.HTTPServerSettings, jsonRPCSettings *services.JSONRPCServerSettings, restSettings *services.RESTServerSettings, api *api.API) (*Server, error)

func (*Server) Start added in v0.0.6

func (c *Server) Start() error

func (*Server) Stop added in v0.0.6

func (c *Server) Stop() error

type Storage

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

func MakeStorage

func MakeStorage(settings *services.Settings) (*Storage, error)

type Values

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

func (Values) Len

func (f Values) Len() int

func (Values) Less

func (f Values) Less(i, j int) bool

func (Values) Swap

func (f Values) Swap(i, j int)

Jump to

Keyboard shortcuts

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