vv

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotGrpcContext not a grpc context
	ErrNotGrpcContext = stderr.New("ctx does not contain metadata")

	// ErrNoJournalIDInContext no jouranl_id in ctx
	ErrNoJournalIDInContext = stderr.New("not found journal_id in ctx")
)

Functions

func IsValidatorError added in v1.3.7

func IsValidatorError(err error) bool

IsValidatorError check this is an error of validator or not

func JournalID

func JournalID(ctx context.Context) (string, error)

JournalID get journal id from context

func ParseFormData added in v1.4.0

func ParseFormData(raw []byte) [][]byte

ParseFormData get file(s) from a wrapped multipart/form-data body

func SignatureIdentifier

func SignatureIdentifier(ctx context.Context) string

SignatureIdentifier get signature identifier from context

func Userinfo

func Userinfo(ctx context.Context) interface{}

Userinfo get userinfo from context

Types

This section is empty.

Jump to

Keyboard shortcuts

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