vv

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: MIT Imports: 9 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 jouranl_id in ctx")
)

Functions

func Error

func Error(c codes.Code, msg string, err errors.Error) error

Error create some error

func ForwardedByGrpcGateway

func ForwardedByGrpcGateway(ctx context.Context) bool

ForwardedByGrpcGateway whether forwarded by grpc gateway

func JournalID

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

JournalID get journal id from context

func SignatureIdentifier

func SignatureIdentifier(ctx context.Context) string

func Userinfo

func Userinfo(ctx context.Context) interface{}

Types

This section is empty.

Directories

Path Synopsis
builder
cmd
protoc-gen-go-grpc
protoc-gen-go-grpc is a plugin for the Google protocol buffer compiler to generate Go code.
protoc-gen-go-grpc is a plugin for the Google protocol buffer compiler to generate Go code.
internal

Jump to

Keyboard shortcuts

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