Discover Packages
github.com/andyzhshg/up4net
grpc
server
package
Version:
v0.0.0-...-74c00de
Opens a new window with list of versions in this module.
Published: Apr 16, 2020
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Run run gRPC server
ctx context to controll server stop
impl your grpc server implemention
cfg configuration of server
customOpts custom options passing to gRPC server
type Config struct {
Host string `toml:"host"`
Port int `toml:"port"`
TLS bool `toml:"tls_on"`
CertFile string `toml:"cert_file"`
KeyFile string `toml:"key_file"`
CatchSignal bool `toml:"catch_signal"`
}
Config config of gRPC seaver
DefaultConfig get a default config
type Register interface {
RegisterServer(*grpc .Server )
}
Register interface definition of gRPC service implemention
Source Files
¶
Click to show internal directories.
Click to hide internal directories.