Documentation ¶
Index ¶
- func CreateOneUser() error
- func GetSessionProfile(sid string) (path string, err error)
- func Init()
- func RetrieveAnswer(id, ask string) (string, error)
- type Websrv
- func (e *Websrv) Call(ctx context.Context, req *websrv.Request, rsp *websrv.Response) error
- func (e *Websrv) Chat(ctx context.Context, req *websrv.ChatRequest, rsp *websrv.ChatResponse) error
- func (e *Websrv) PingPong(ctx context.Context, stream websrv.Websrv_PingPongStream) error
- func (e *Websrv) Stream(ctx context.Context, req *websrv.StreamingRequest, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOneUser ¶
func CreateOneUser() error
func GetSessionProfile ¶
GetSessionProfile get the session's dialog file or create a new one if the session is new
func RetrieveAnswer ¶
Types ¶
type Websrv ¶
type Websrv struct{}
func (*Websrv) Call ¶
Call is a single request handler called via client.Call or the generated client code
func (*Websrv) Chat ¶
func (e *Websrv) Chat(ctx context.Context, req *websrv.ChatRequest, rsp *websrv.ChatResponse) error
func (*Websrv) PingPong ¶
PingPong is a bidirectional stream handler called via client.Stream or the generated client code
func (*Websrv) Stream ¶
func (e *Websrv) Stream(ctx context.Context, req *websrv.StreamingRequest, stream websrv.Websrv_StreamStream) error
Stream is a server side stream handler called via client.Stream or the generated client code
Click to show internal directories.
Click to hide internal directories.