Documentation ¶
Index ¶
Constants ¶
View Source
const ModName = "server.goframe"
ModName mod name
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Host string Port int Debug bool DisableMetric bool DisableTrace bool // ServiceAddress service address in registry info, default to 'Host:Port' ServiceAddress string SlowQueryThresholdInMilli int64 // contains filtered or unexported fields }
Config HTTP config
func (*Config) WithLogger ¶
WithLogger ...
type GRPCProxyMessage ¶
type GRPCProxyMessage struct { Error int `protobuf:"varint,1,opt,name=error" json:"error"` Message string `protobuf:"bytes,2,opt,name=msg" json:"msg"` Data proto.Message `protobuf:"bytes,3,opt,name=data" json:"data"` }
GRPCProxyMessage ...
func (*GRPCProxyMessage) MarshalJSONPB ¶
func (m *GRPCProxyMessage) MarshalJSONPB() ([]byte, error)
MarshalJSONPB ...
Click to show internal directories.
Click to hide internal directories.