Documentation ¶
Index ¶
- Constants
- func BottleSrvClient() pbbottle.BottleService
- func ClientLogWrapper(fn client.CallFunc) client.CallFunc
- func NewDBError(err error) error
- func NewRedisError(err error) error
- func NewWeedError(err error) error
- func ServiceErrorRecovery(fn server.HandlerFunc) server.HandlerFunc
- func ServiceLogWrapper(fn server.HandlerFunc) server.HandlerFunc
- func SetClient(client client.Client)
- func ShareSrvClient() pbshare.ShareService
- func UploadSrvClient() pbupload.UploadService
- func UserSrvClient() pbuser.UserService
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 NewDBError ¶
func NewRedisError ¶
func NewWeedError ¶
func ServiceErrorRecovery ¶
func ServiceErrorRecovery(fn server.HandlerFunc) server.HandlerFunc
func ServiceLogWrapper ¶
func ServiceLogWrapper(fn server.HandlerFunc) server.HandlerFunc
func ShareSrvClient ¶
func ShareSrvClient() pbshare.ShareService
func UploadSrvClient ¶
func UploadSrvClient() pbupload.UploadService
func UserSrvClient ¶
func UserSrvClient() pbuser.UserService
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.