fill_response

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 6 Imported by: 0

README

fill_response

主要用途

填充响应信息

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultFillFunc

func DefaultFillFunc(ctx context.Context, resp interface{}, err error) (newResp interface{})

DefaultFillFunc 默认填充

func UnaryServerInterceptor

func UnaryServerInterceptor(opts ...Option) grpc.UnaryServerInterceptor

Types

type FillResponseFunc

type FillResponseFunc func(ctx context.Context, resp interface{}, err error) (newResp interface{})

FillResponseFunc 注入ctx方法

type Option

type Option func(*options)

func WithFillResponseFunc

func WithFillResponseFunc(fn FillResponseFunc) Option

Jump to

Keyboard shortcuts

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