svc

package
v0.0.0-...-6d7266f Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 24 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
	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

Jump to

Keyboard shortcuts

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