consts

package
v0.0.0-...-799f385 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultServerPort = ":50051"
)
View Source
const (
	// RPC过期时间
	RPCTimeout = 30
)

Variables

View Source
var (
	// Error的类型
	TypeOfError = reflect.TypeOf((*error)(nil)).Elem()
	TypeOfBytes = reflect.TypeOf(([]byte)(nil))

	// 空error
	NilError = reflect.New(TypeOfError).Elem()
)
View Source
var (
	ErrExample = errors.New("error example")
	// 请求处理不过来,堆积太多
	ErrRPCServerTooBusy = errors.New("error ErrRPCServerTooBusy")
	ErrRPCAutoTimeout   = errors.New("error rpc auto timeout")
)

Errors that can occur during message handling.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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