Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ServiceContext ¶
type ServiceContext struct { Config config.Config AccountRpc accountrpc.AccountRpc PermissionRpc permissionrpc.PermissionRpc ArticleRpc articlerpc.ArticleRpc CommentRpc commentrpc.CommentRpc MessageRpc messagerpc.MessageRpc PageRpc pagerpc.PageRpc PhotoRpc photorpc.PhotoRpc TalkRpc talkrpc.TalkRpc FriendRpc friendrpc.FriendRpc SyslogRpc syslogrpc.SyslogRpc WebsiteRpc websiterpc.WebsiteRpc ConfigRpc configrpc.ConfigRpc ResourceRpc resourcerpc.ResourceRpc Redis *redis.Redis TokenHolder *tokenx.JwtTokenHolder Uploader oss.OSS WebsocketManager *ws.WebSocketManager JwtToken rest.Middleware SignToken rest.Middleware }
func NewServiceContext ¶
func NewServiceContext(c config.Config) *ServiceContext
Click to show internal directories.
Click to hide internal directories.