Documentation ¶
Index ¶
Constants ¶
View Source
const (
PluginsRoot = root + ".plugins"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
Port int
}
Options drpc server options.
func NewOptions ¶
NewOptions returns options from config file or environment vars.
func NewOptionsWithPath ¶
NewOptionsWithPath unmarshals options based a given key path.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents a drpc server.
func NewServerWithConfigPath ¶
NewServerWithConfigPath returns a new drpc server with options from config path.
func NewServerWithOptions ¶
NewServerWithOptions returns a new drpc server with options.
func (*Server) Server ¶
func (s *Server) Server() *drpcserver.Server
Server returns the wrapped drpc server instance.
Click to show internal directories.
Click to hide internal directories.