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: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddWebSocketRoutes

func AddWebSocketRoutes(rg *gin.RouterGroup, fh *FeedHub.FeedHub, mh *MessageHub.MessageHub, ch *ContactHub.ContactHub, pingInterval int)

func ConfigureRoutes

func ConfigureRoutes(conf *c.Config, commonRepositories *cr.Repositories, fh *FeedHub.FeedHub, mh *MessageHub.MessageHub, ch *ContactHub.ContactHub)

Run will start the server

Types

type FeedID

type FeedID struct {
	ID string `uri:"id"`
}

type FeedParticipant

type FeedParticipant struct {
	EMail string `json:"email"`
}

type FeedParticipantList

type FeedParticipantList struct {
	Participants []FeedParticipant `json:"participants"`
}

type FeedPostRequest

type FeedPostRequest struct {
	Username    string   `json:"username"`
	Message     string   `json:"message"`
	Channel     string   `json:"channel"`
	Source      string   `json:"source"`
	Direction   string   `json:"direction"`
	Destination []string `json:"destination"`
	ReplyTo     *string  `json:"replyTo,omitempty"`
}

type LoginPostRequest

type LoginPostRequest struct {
	Username string `json:"username" binding:"required"`
	Password string `json:"password" binding:"required"`
}

type Message

type Message struct {
	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