common

package
v0.0.0-...-7a0ce36 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotFoundError = 1000 + iota
	ExistedError
	ConflictError
	JwtError
	PasswordError
	EmptyAvatarError
	BadArgError

	FileFetchError
	FileUploadingError
	ChunkUploadedError
	FileFailError

	DBConnError
	InternalError
	WeedError
)

Variables

This section is empty.

Functions

func BottleSrvClient

func BottleSrvClient() pbbottle.BottleService

func ClientLogWrapper

func ClientLogWrapper(fn client.CallFunc) client.CallFunc

func NewDBError

func NewDBError(err error) error

func NewRedisError

func NewRedisError(err error) error

func NewWeedError

func NewWeedError(err error) error

func ServiceErrorRecovery

func ServiceErrorRecovery(fn server.HandlerFunc) server.HandlerFunc

func ServiceLogWrapper

func ServiceLogWrapper(fn server.HandlerFunc) server.HandlerFunc

func SetClient

func SetClient(client client.Client)

func ShareSrvClient

func ShareSrvClient() pbshare.ShareService

func UploadSrvClient

func UploadSrvClient() pbupload.UploadService

func UserSrvClient

func UserSrvClient() pbuser.UserService

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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