handler

package
v0.0.0-...-64d7a94 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOneUser

func CreateOneUser() error

func GetSessionProfile

func GetSessionProfile(sid string) (path string, err error)

GetSessionProfile get the session's dialog file or create a new one if the session is new

func Init

func Init()

func RetrieveAnswer

func RetrieveAnswer(id, ask string) (string, error)

Types

type Websrv

type Websrv struct{}

func (*Websrv) Call

func (e *Websrv) Call(ctx context.Context, req *websrv.Request, rsp *websrv.Response) error

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

func (e *Websrv) PingPong(ctx context.Context, stream websrv.Websrv_PingPongStream) error

PingPong is a bidirectional stream handler called via client.Stream or the generated client code

func (*Websrv) Stream

Stream is a server side stream handler called via client.Stream or the generated client code

Jump to

Keyboard shortcuts

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