common

package
v2.0.1-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CdnSuffix = "_CDN"

CdnSuffix represents cdn peer id suffix

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

Functions

func NewGrpcDfError

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

func NewResWithCodeAndMsg

func NewResWithCodeAndMsg(ptr interface{}, code base.Code, msg string) interface{}

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

func NewResWithErr

func NewResWithErr(ptr interface{}, err error) interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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