routes

package
v0.0.0-...-467dd59 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 23 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddVconRoutes

func AddVconRoutes(conf *c.Config, df util.DialFactory, rg *gin.RouterGroup)

func AddWebChatRoutes

func AddWebChatRoutes(conf *c.Config, df util.DialFactory, rg *gin.RouterGroup)

func AddWebSocketRoutes

func AddWebSocketRoutes(rg *gin.RouterGroup, hub *chatHub.Hub, pingInterval int)

func GetOasisClient

func GetOasisClient(c *gin.Context, df util.DialFactory) *grpc.ClientConn

func Run

func Run(conf *c.Config, fh *chatHub.Hub, oauthConfig *oauth2.Config)

Run will start the server

Types

type EmailContent

type EmailContent struct {
	MessageId string   `json:"messageId"`
	Html      string   `json:"html"`
	Subject   string   `json:"subject"`
	From      string   `json:"from"`
	To        []string `json:"to"`
	Cc        []string `json:"cc"`
	Bcc       []string `json:"bcc"`
	InReplyTo []string `json:"InReplyTo"`
	Reference []string `json:"Reference"`
}

type LoginRequest

type LoginRequest struct {
	Mail string `json:"mail"`
}

type LoginResponse

type LoginResponse struct {
	UserName  string `json:"username"`
	FirstName string `json:"firstname"`
	LastName  string `json:"lastname"`
}

type MailPostRequest

type MailPostRequest struct {
	Sender     string `json:"sender"`
	RawMessage string `json:"rawMessage"`
	Subject    string `json:"subject"`
	ApiKey     string `json:"api-key"`
	Tenant     string `json:"X-Openline-TENANT"`
}

type Message

type Message struct {
	Message string `json:"message"`
}

type VConEvent

type VConEvent struct {
	Parties  []model.VConParty   `json:"parties,omitempty"`
	Dialog   *model.VConDialog   `json:"dialog,omitempty"`
	Analysis *model.VConAnalysis `json:"analysis,omitempty"`
}

type WebchatMessage

type WebchatMessage struct {
	Username string `json:"username"`
	UserId   string `json:"userId"`
	Message  string `json:"message"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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