centrifugov1

package
v0.0.0-...-d9662de Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadAuthRequest = errors.New("bad authorization request")
)

Functions

func ExtractToken

func ExtractToken(r *http.Request) (string, error)

ExtractToken extract token from request

func ExtractToken2

func ExtractToken2(r *http.Request) (string, error)

ExtractToken extract token from request

Types

type ArrayOfDirectionData

type ArrayOfDirectionData []models.Direction

type ArrayOfDirectionDetailedData

type ArrayOfDirectionDetailedData []models.DirectionDetailed

type ArrayOfThemesData

type ArrayOfThemesData []models.Theme

type ArrayThemeDataResult

type ArrayThemeDataResult httpsrv.ResultAnsw

type CentrifugoV1

type CentrifugoV1 struct {
	// contains filtered or unexported fields
}

func NewCentrifugoV1

func NewCentrifugoV1(ctx *context.Context, orm *orm.ORM, sessionV1 *sessionv1.SessionV1) (*CentrifugoV1, error)

func (*CentrifugoV1) AddLastActive

func (c *CentrifugoV1) AddLastActive(pub *models.Publish) error

func (*CentrifugoV1) AuthConnectHandler

func (c *CentrifugoV1) AuthConnectHandler(ec echo.Context) (err error)

func (*CentrifugoV1) CreateTheme

func (c *CentrifugoV1) CreateTheme(request *models.Theme) (*models.Theme, error)

func (*CentrifugoV1) CreateThemeHandler

func (c *CentrifugoV1) CreateThemeHandler(ec echo.Context) (err error)

func (*CentrifugoV1) GetChat

func (c *CentrifugoV1) GetChat(id int) (*models.ChatChannel, error)

func (*CentrifugoV1) GetDirectionsDetailedHandler

func (c *CentrifugoV1) GetDirectionsDetailedHandler(ec echo.Context) (err error)

func (*CentrifugoV1) GetDirectionsHandler

func (c *CentrifugoV1) GetDirectionsHandler(ec echo.Context) (err error)

func (*CentrifugoV1) GetHistoryHandler

func (c *CentrifugoV1) GetHistoryHandler(ec echo.Context) error

func (*CentrifugoV1) GetLastActiveThemes

func (c *CentrifugoV1) GetLastActiveThemes(ec echo.Context) (err error)

func (*CentrifugoV1) LikeTheme

func (c *CentrifugoV1) LikeTheme(id int64) (err error)

func (*CentrifugoV1) Publish

func (c *CentrifugoV1) Publish(pub *models.Publish, userID int) error

func (*CentrifugoV1) PublishHandler

func (c *CentrifugoV1) PublishHandler(ec echo.Context) (err error)

func (*CentrifugoV1) PutLikeThemes

func (c *CentrifugoV1) PutLikeThemes(ec echo.Context) (err error)

func (*CentrifugoV1) SaveToDB

func (c *CentrifugoV1) SaveToDB(chatID, userID int, name, message string) error

func (*CentrifugoV1) SelectAllDirections

func (c *CentrifugoV1) SelectAllDirections() (data *ArrayOfDirectionData, err error)

func (*CentrifugoV1) SelectLastActiveThemes

func (c *CentrifugoV1) SelectLastActiveThemes() (data *ArrayOfThemesData, err error)

func (*CentrifugoV1) SelectThemesByDirection

func (c *CentrifugoV1) SelectThemesByDirection(id int) (data *ArrayOfThemesData, err error)

type ChatDataResult

type ChatDataResult httpsrv.ResultAnsw

type DirectionsDataResult

type DirectionsDataResult httpsrv.ResultAnsw

type ThemeDataResult

type ThemeDataResult httpsrv.ResultAnsw

Jump to

Keyboard shortcuts

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