validator

package
v0.0.0-...-9f4bb82 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValidatorRPCSet = wire.NewSet(wire.Struct(new(ValidatorRPC), "*"))

Functions

This section is empty.

Types

type ValidatorRPC

type ValidatorRPC struct {
	Logger core.ILogger
	Redis  *redis.Client
}

func (*ValidatorRPC) GenErrMsg

func (v *ValidatorRPC) GenErrMsg(ctx context.Context, desc string, err error) error

func (*ValidatorRPC) GenOkMsg

func (v *ValidatorRPC) GenOkMsg(ctx context.Context, desc string) string

func (*ValidatorRPC) ValidateMetadata

func (v *ValidatorRPC) ValidateMetadata(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error)

Jump to

Keyboard shortcuts

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