Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { ClientConn() *grpc.ClientConn HealthCheck() *Status }
Client is the generic client to a gRPC service.
type ClientConfig ¶
type ClientConfig struct {
credentials.TransportCredentials
}
ClientConfig defines the interface for the environment of a service's connection as a client to other services.
func NewClientConfig ¶
func NewClientConfig(tlsCert string) *ClientConfig
NewClientConfig generates a new service client environment.
type Server ¶
type Server struct { *service.ServerConfig net.Listener MongoClient mongo.Client // contains filtered or unexported fields }
Server defines the structure of the server for a gRPC service.
func NewServer ¶
func NewServer(config *service.ServerConfig, srv Service) *Server
NewServer creates a new listener and gRPC server for a gRPC service.
func (*Server) StartServer ¶
func (s *Server) StartServer()
StartServer provides the callback function to start the server.
Click to show internal directories.
Click to hide internal directories.