Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidCategory = errors.New("invalid database category")
Functions ¶
func Environment ¶
func Environment() option.Environment
Environment returns the current environment that the server is running for
Types ¶
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.