Documentation
¶
Index ¶
Constants ¶
View Source
const ( Name = "grpc-server" ShowName = "GRPC Server" )
Variables ¶
This section is empty.
Functions ¶
func GetPeerHostFromStreamContext ¶ added in v0.4.0
Types ¶
type OriginalData ¶ added in v0.4.0
type OriginalData struct {
Content []byte
}
OriginalData is keep binary Content
func NewOriginalData ¶ added in v0.4.0
func NewOriginalData(data []byte) *OriginalData
type Server ¶
type Server struct {
config.CommonFields
Address string `mapstructure:"address"` // The address of grpc server.
Network string `mapstructure:"network"` // The network of grpc.
MaxRecvMsgSize int `mapstructure:"max_recv_msg_size"` // The max size of the received log.
MaxConcurrentStreams uint32 `mapstructure:"max_concurrent_streams"` // The max concurrent stream channels.
TLSCertFile string `mapstructure:"tls_cert_file"` // The TLS cert file path.
TLSKeyFile string `mapstructure:"tls_key_file"` // The TLS key file path.
// contains filtered or unexported fields
}
func (*Server) DefaultConfig ¶
func (*Server) Description ¶
Click to show internal directories.
Click to hide internal directories.