message

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SESSION_TYPE_MESSAGE = iota
	SESSION_TYPE_NOTIFY
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IMessageService

type IMessageService struct {
	pb.UnimplementedIMessageServer
	// contains filtered or unexported fields
}

func NewIMessageService

func NewIMessageService(imBiz *biz.IMBiz, log log.Logger, conf *conf.Bootstrap) *IMessageService

func (*IMessageService) CreateMessage

func (s *IMessageService) CreateMessage(ctx context.Context, req *pb.MessageReq) (*pb.MessageReply, error)

func (*IMessageService) ListLastMessages

func (s *IMessageService) ListLastMessages(ctx context.Context, req *pb.ListLastMessageReq) (*pb.ListLastMessageReply, error)

func (*IMessageService) ListMessage

func (s *IMessageService) ListMessage(ctx context.Context, req *pb.ListMessageReq) (*pb.ListMessageReply, error)

type MessageService

type MessageService struct {
	pb.UnimplementedMessageServer
	// contains filtered or unexported fields
}

func NewMessageService

func NewMessageService(conf *conf.Bootstrap, d biz.DataRepo, svr *socketio.SocketioServer, log log.Logger) *MessageService

func (*MessageService) CreateMessage added in v1.0.1

func (s *MessageService) CreateMessage(ctx context.Context, req *pb.CreateMessageRequest) (*emptypb.Empty, error)

func (*MessageService) GetAlismsCode

func (s *MessageService) GetAlismsCode(ctx context.Context, req *pb.Phone) (*emptypb.Empty, error)

func (*MessageService) PostAlismsCode

func (s *MessageService) PostAlismsCode(ctx context.Context, req *pb.SMSCode) (*emptypb.Empty, error)

type SessionService

type SessionService struct {
	pb.UnimplementedSessionServer
	// contains filtered or unexported fields
}

func NewSessionService

func NewSessionService(imBiz *biz.IMBiz, logger log.Logger, conf *conf.Bootstrap) *SessionService

func (*SessionService) CreateSession

func (s *SessionService) CreateSession(ctx context.Context, req *pb.CreateSessionReq) (*pb.CreateSessionReply, error)

func (*SessionService) CreateSessionUser

func (*SessionService) DeleteSessionUser

func (*SessionService) ListSessionUser

func (s *SessionService) ListSessionUser(ctx context.Context, req *pb.ListSessionUserReq) (*pb.ListSessionUserReply, error)

func (*SessionService) ListUserSession

func (s *SessionService) ListUserSession(ctx context.Context, req *pb.ListUserSessionReq) (*pb.ListSessionReply, error)

func (*SessionService) PutSession

func (*SessionService) User added in v1.0.4

func (s *SessionService) User(ctx context.Context, req *pb.UserReq) (*pb.UserReply, error)

type SystemService

type SystemService struct {
	pb.UnimplementedSystemServer
	// contains filtered or unexported fields
}

func NewSystemService

func NewSystemService(imBiz *biz.IMBiz, logger log.Logger, conf *conf.Bootstrap) *SystemService

func (*SystemService) CreatePlugin

func (s *SystemService) CreatePlugin(ctx context.Context, req *pb.CreatePluginsReq) (*pb.CreatePluginsReply, error)

func (*SystemService) DeletePlugin

func (s *SystemService) DeletePlugin(ctx context.Context, req *pb.DeletePluginsReq) (*pb.DeletePluginsReply, error)

func (*SystemService) ListPlugin

func (*SystemService) PutPlugin

func (s *SystemService) PutPlugin(ctx context.Context, req *pb.PluginReply) (*pb.PluginReply, error)

func (*SystemService) PutSystemConfig

func (s *SystemService) PutSystemConfig(ctx context.Context, req *pb.PutSystemConfigReq) (*pb.PutSystemConfigReply, error)

Jump to

Keyboard shortcuts

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