server

package
v0.0.0-...-55171a9 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2018 License: MIT Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedDatastore = errors.New("unsupported datastore")
)

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(cfg *radiant.Config, datastore ds.Datastore) (*Server, error)

func (*Server) AddServer

func (s *Server) AddServer(ctx context.Context, req *api.AddServerRequest) (*ptypes.Empty, error)

func (*Server) Config

func (s *Server) Config(ctx context.Context, req *api.ConfigRequest) (*api.ConfigResponse, error)

func (*Server) Reload

func (s *Server) Reload(ctx context.Context, req *api.ReloadRequest) (*ptypes.Empty, error)

func (*Server) RemoveServer

func (s *Server) RemoveServer(ctx context.Context, req *api.RemoveServerRequest) (*ptypes.Empty, error)

func (*Server) Run

func (s *Server) Run() error

func (*Server) Servers

func (s *Server) Servers(ctx context.Context, req *api.ServersRequest) (*api.ServersResponse, error)

func (*Server) Stop

func (s *Server) Stop() error

Jump to

Keyboard shortcuts

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