svc

package
v0.0.0-...-eea11df Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectRedis

func ConnectRedis(c config.RedisConf) (*redis.Redis, error)

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

Jump to

Keyboard shortcuts

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