service

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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) GetBot added in v0.2.1

func (s *Chatbot) GetBot(ctx context.Context, payload *pb.BotRequest) (*pb.BotReply, error)

func (*Chatbot) GetBots added in v0.2.1

func (s *Chatbot) GetBots(ctx context.Context, _ *pb.BotsRequest) (*pb.BotsReply, 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)

Jump to

Keyboard shortcuts

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