Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Conn ¶
type Conn struct { net.Conn ConnectionType ConnectionType // contains filtered or unexported fields }
type ConnectionType ¶
type ConnectionType uint8
const ( ConnectionTypeHTTP ConnectionType = iota ConnectionTypeTLS )
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server handles gRPC requests to the service.
func New ¶
New instantiates a listening server. When passing addr with an unspecified port or ":", use Addr().
func (*Server) AddCloseFunc ¶
func (s *Server) AddCloseFunc(f func())
AddCloseFunc adds a function to be called by the Close method. This eliminates the need for wrapping the Server.
type SplitListener ¶
Click to show internal directories.
Click to hide internal directories.