plugs

package
v0.0.0-...-931f6b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2025 License: MIT Imports: 4 Imported by: 0

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

func (*MyClientMidd) Start

func (c *MyClientMidd) Start(ctx context.Context, method string, req, reply any, logger *fgin.FginSugaredLogger) (context.Context, 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

func (*MyMidd) Start

func (c *MyMidd) Start(ctx context.Context, req any, info *grpc.UnaryServerInfo, logger *fgin.FginSugaredLogger) (context.Context, error)

type MyMysql

type MyMysql struct {
	Host string `yaml:"host" json:"host"`
	Port int    `yaml:"port" json:"port"`
}

func (*MyMysql) Start

func (c *MyMysql) Start(logger *fgin.FginSugaredLogger)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL