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 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 RbacHolder *rbacx.RbacHolder Uploader upload.Uploader JwtToken rest.Middleware SignToken rest.Middleware Operation rest.Middleware }
func NewServiceContext ¶
func NewServiceContext(c config.Config) *ServiceContext
Click to show internal directories.
Click to hide internal directories.