Documentation ¶
Index ¶
- Variables
- func CreateInitServerFn(ps *Chatbot) rpc.InitServer
- type Chatbot
- func (s *Chatbot) CreateGroup(ctx context.Context, payload *pb.GroupRequest) (*pb.StateReply, error)
- func (s *Chatbot) CreateGroupBot(ctx context.Context, payload *pb.GroupBotRequest) (*pb.StateReply, error)
- func (s *Chatbot) DeleteGroup(ctx context.Context, payload *pb.GroupRequest) (*pb.StateReply, error)
- func (s *Chatbot) DeleteGroupBot(ctx context.Context, payload *pb.GroupBotRequest) (*pb.StateReply, error)
- func (s *Chatbot) GetBot(ctx context.Context, payload *pb.BotRequest) (*pb.BotReply, error)
- func (s *Chatbot) GetBots(ctx context.Context, _ *pb.BotsRequest) (*pb.BotsReply, error)
- func (s *Chatbot) GetGroup(ctx context.Context, payload *pb.GroupRequest) (*pb.GroupReply, error)
- func (s *Chatbot) GetGroupBotSetting(ctx context.Context, request *pb.BotSettingRequest) (*pb.BotSettingReply, error)
- func (s *Chatbot) GetGroupSetting(ctx context.Context, request *pb.GroupSettingRequest) (*pb.GroupSettingReply, error)
- func (s *Chatbot) GetGroups(ctx context.Context, payload *pb.GroupRequest) (*pb.GroupsReply, error)
- func (s *Chatbot) Handle(ctx context.Context, payload *pb.ChatbotRequest) (*pb.ChatbotReply, error)
- func (s *Chatbot) Register(ctx context.Context, request *pb.BotRequest) (*pb.StateReply, error)
- func (s *Chatbot) UpdateBotSetting(_ context.Context, _ *pb.BotSettingRequest) (*pb.StateReply, error)
- func (s *Chatbot) UpdateGroup(ctx context.Context, payload *pb.GroupRequest) (*pb.StateReply, error)
- func (s *Chatbot) UpdateGroupBotSetting(ctx context.Context, payload *pb.BotSettingRequest) (*pb.StateReply, error)
- func (s *Chatbot) UpdateGroupSetting(ctx context.Context, payload *pb.GroupSettingRequest) (*pb.StateReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewChatbot, CreateInitServerFn)
Functions ¶
func CreateInitServerFn ¶
func CreateInitServerFn(ps *Chatbot) rpc.InitServer
Types ¶
type Chatbot ¶
type Chatbot struct {
// contains filtered or unexported fields
}
func NewChatbot ¶
func NewChatbot( logger log.Logger, repo repository.ChatbotRepository, message pb.MessageSvcClient, middle pb.MiddleSvcClient, todo pb.TodoSvcClient, bot *rulebot.RuleBot) *Chatbot
func (*Chatbot) CreateGroup ¶ added in v0.2.1
func (s *Chatbot) CreateGroup(ctx context.Context, payload *pb.GroupRequest) (*pb.StateReply, error)
func (*Chatbot) CreateGroupBot ¶ added in v0.2.1
func (s *Chatbot) CreateGroupBot(ctx context.Context, payload *pb.GroupBotRequest) (*pb.StateReply, error)
func (*Chatbot) DeleteGroup ¶ added in v0.2.1
func (s *Chatbot) DeleteGroup(ctx context.Context, payload *pb.GroupRequest) (*pb.StateReply, error)
func (*Chatbot) DeleteGroupBot ¶ added in v0.2.1
func (s *Chatbot) DeleteGroupBot(ctx context.Context, payload *pb.GroupBotRequest) (*pb.StateReply, error)
func (*Chatbot) GetGroup ¶ added in v0.2.1
func (s *Chatbot) GetGroup(ctx context.Context, payload *pb.GroupRequest) (*pb.GroupReply, error)
func (*Chatbot) GetGroupBotSetting ¶ added in v0.2.1
func (s *Chatbot) GetGroupBotSetting(ctx context.Context, request *pb.BotSettingRequest) (*pb.BotSettingReply, error)
func (*Chatbot) GetGroupSetting ¶ added in v0.2.1
func (s *Chatbot) GetGroupSetting(ctx context.Context, request *pb.GroupSettingRequest) (*pb.GroupSettingReply, error)
func (*Chatbot) GetGroups ¶ added in v0.2.1
func (s *Chatbot) GetGroups(ctx context.Context, payload *pb.GroupRequest) (*pb.GroupsReply, error)
func (*Chatbot) Handle ¶
func (s *Chatbot) Handle(ctx context.Context, payload *pb.ChatbotRequest) (*pb.ChatbotReply, error)
func (*Chatbot) Register ¶ added in v0.2.1
func (s *Chatbot) Register(ctx context.Context, request *pb.BotRequest) (*pb.StateReply, error)
func (*Chatbot) UpdateBotSetting ¶ added in v0.2.1
func (s *Chatbot) UpdateBotSetting(_ context.Context, _ *pb.BotSettingRequest) (*pb.StateReply, error)
func (*Chatbot) UpdateGroup ¶ added in v0.2.1
func (s *Chatbot) UpdateGroup(ctx context.Context, payload *pb.GroupRequest) (*pb.StateReply, error)
func (*Chatbot) UpdateGroupBotSetting ¶ added in v0.2.1
func (s *Chatbot) UpdateGroupBotSetting(ctx context.Context, payload *pb.BotSettingRequest) (*pb.StateReply, error)
func (*Chatbot) UpdateGroupSetting ¶ added in v0.2.1
func (s *Chatbot) UpdateGroupSetting(ctx context.Context, payload *pb.GroupSettingRequest) (*pb.StateReply, error)
Click to show internal directories.
Click to hide internal directories.