Documentation ¶
Index ¶
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, middle pb.MiddleSvcClient, todo pb.TodoSvcClient, bot *rulebot.RuleBot) *Chatbot
func (*Chatbot) Handle ¶
func (s *Chatbot) Handle(ctx context.Context, payload *pb.ChatbotRequest) (*pb.ChatbotReply, error)
Click to show internal directories.
Click to hide internal directories.