Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*options)
Option fills the option struct to configure TLS keys etc.
func StealthMode ¶
func StealthMode() Option
StealthMode sets the gRPC in a mode to authenticate only known devices. This means that modules like pairing will fail as a new client cannot succeed in the TLS handshake. No interceptor will be triggered if TLS fails.
func TLSKeyFile ¶
TLSKeyFile defines the server's TLS certificate used to authenticate against a client. It also sets the pub key's common name as default one for the server's name.
type Server ¶
type Server struct { authentication.Auth Interceptor *srpc.RoutedInterceptor // contains filtered or unexported fields }
func (*Server) CommonName ¶
func (*Server) RegisterModules ¶
func (s *Server) RegisterModules(mods ...srpc.ServerModule) error
func (*Server) Serve ¶
Serve starts listening for incoming connections and serves the requests through the RPC backend (gRPC).
func (*Server) ShuttingDown ¶
func (s *Server) ShuttingDown() <-chan struct{}
ShuttingDown exposes the shutdown context to higher-level services if a termination signal was received. XXX: make thread-safe.