common

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BeginOfPiece = int32(-1)
View Source
var EndOfPiece = int32(1) << 30

Functions

func NewGrpcDfError

func NewGrpcDfError(code base.Code, msg string) *base.GrpcDfError

func NewResWithCodeAndMsg

func NewResWithCodeAndMsg(ptr any, code base.Code, msg string) any

NewResWithCodeAndMsg returns a response ptr with code and msg, ptr is a expected type ptr.

func NewResWithErr

func NewResWithErr(ptr any, err error) any

Types

This section is empty.

Jump to

Keyboard shortcuts

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