Documentation ¶
Index ¶
- Constants
- type IMessageService
- func (s *IMessageService) CreateMessage(ctx context.Context, req *pb.MessageReq) (*pb.MessageReply, error)
- func (s *IMessageService) ListLastMessages(ctx context.Context, req *pb.ListLastMessageReq) (*pb.ListLastMessageReply, error)
- func (s *IMessageService) ListMessage(ctx context.Context, req *pb.ListMessageReq) (*pb.ListMessageReply, error)
- type MessageService
- func (s *MessageService) CreateMessage(ctx context.Context, req *pb.CreateMessageRequest) (*emptypb.Empty, error)
- func (s *MessageService) GetAlismsCode(ctx context.Context, req *pb.Phone) (*emptypb.Empty, error)
- func (s *MessageService) PostAlismsCode(ctx context.Context, req *pb.SMSCode) (*emptypb.Empty, error)
- type SessionService
- func (s *SessionService) CreateSession(ctx context.Context, req *pb.CreateSessionReq) (*pb.CreateSessionReply, error)
- func (s *SessionService) CreateSessionUser(ctx context.Context, req *pb.CreateSessionUserReq) (*pb.CreateSessionUserReply, error)
- func (s *SessionService) DeleteSessionUser(ctx context.Context, req *pb.DeleteSessionUserReq) (*pb.DeleteSessionUserReply, error)
- func (s *SessionService) ListSessionUser(ctx context.Context, req *pb.ListSessionUserReq) (*pb.ListSessionUserReply, error)
- func (s *SessionService) ListUserSession(ctx context.Context, req *pb.ListUserSessionReq) (*pb.ListSessionReply, error)
- func (s *SessionService) PutSession(ctx context.Context, req *pb.PutSessionReq) (*pb.CreateSessionReply, error)
- func (s *SessionService) User(ctx context.Context, req *pb.UserReq) (*pb.UserReply, error)
- type SystemService
- func (s *SystemService) CreatePlugin(ctx context.Context, req *pb.CreatePluginsReq) (*pb.CreatePluginsReply, error)
- func (s *SystemService) DeletePlugin(ctx context.Context, req *pb.DeletePluginsReq) (*pb.DeletePluginsReply, error)
- func (s *SystemService) ListPlugin(ctx context.Context, req *pb.ListPluginsReq) (*pb.CreatePluginsReply, error)
- func (s *SystemService) PutPlugin(ctx context.Context, req *pb.PluginReply) (*pb.PluginReply, error)
- func (s *SystemService) PutSystemConfig(ctx context.Context, req *pb.PutSystemConfigReq) (*pb.PutSystemConfigReply, error)
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 (*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 (*MessageService) PostAlismsCode ¶
type SessionService ¶
type SessionService struct { pb.UnimplementedSessionServer // contains filtered or unexported fields }
func NewSessionService ¶
func (*SessionService) CreateSession ¶
func (s *SessionService) CreateSession(ctx context.Context, req *pb.CreateSessionReq) (*pb.CreateSessionReply, error)
func (*SessionService) CreateSessionUser ¶
func (s *SessionService) CreateSessionUser(ctx context.Context, req *pb.CreateSessionUserReq) (*pb.CreateSessionUserReply, error)
func (*SessionService) DeleteSessionUser ¶
func (s *SessionService) DeleteSessionUser(ctx context.Context, req *pb.DeleteSessionUserReq) (*pb.DeleteSessionUserReply, error)
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 (s *SessionService) PutSession(ctx context.Context, req *pb.PutSessionReq) (*pb.CreateSessionReply, error)
type SystemService ¶
type SystemService struct { pb.UnimplementedSystemServer // contains filtered or unexported fields }
func NewSystemService ¶
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 (s *SystemService) ListPlugin(ctx context.Context, req *pb.ListPluginsReq) (*pb.CreatePluginsReply, error)
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)
Click to show internal directories.
Click to hide internal directories.