Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Environment ¶
func Environment() option.Environment
Environment returns the current environment that the server is running for
Types ¶
type HRPC ¶
type HRPC struct {
// contains filtered or unexported fields
}
type Server ¶
type Server interface {
// Server returns the gRPC server for registration at PB
Server() *grpc.Server
// Serve makes connections to databases and starts to listen ports to serve
// it will block the current thread
Serve() error
// Run same like Serve() but it does not register to consul and starts servers to block
// It will make connections to databases
Run() error
}
Server the server
Click to show internal directories.
Click to hide internal directories.