Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MyClientMidd ¶
type MyClientMidd struct {
ServiceName string `yaml:"service_name" json:"service_name"`
}
客户端中间件
func (*MyClientMidd) AfterStart ¶
func (c *MyClientMidd) AfterStart(ctx context.Context, method string, req, reply any, plugsErr error, logger *fgin.FginSugaredLogger) error
type MyMidd ¶
type MyMidd struct {
ServiceName string `yaml:"service_name" json:"service_name"`
}
服务端中间件
func (*MyMidd) AfterStart ¶
func (c *MyMidd) AfterStart(ctx context.Context, req any, info *grpc.UnaryServerInfo, plugsErr error, logger *fgin.FginSugaredLogger) error
Click to show internal directories.
Click to hide internal directories.