Documentation ¶
Index ¶
- Variables
- func ExtractToken(r *http.Request) (string, error)
- func ExtractToken2(r *http.Request) (string, error)
- type ArrayOfDirectionData
- type ArrayOfDirectionDetailedData
- type ArrayOfThemesData
- type ArrayThemeDataResult
- type CentrifugoV1
- func (c *CentrifugoV1) AddLastActive(pub *models.Publish) error
- func (c *CentrifugoV1) AuthConnectHandler(ec echo.Context) (err error)
- func (c *CentrifugoV1) CreateTheme(request *models.Theme) (*models.Theme, error)
- func (c *CentrifugoV1) CreateThemeHandler(ec echo.Context) (err error)
- func (c *CentrifugoV1) GetChat(id int) (*models.ChatChannel, error)
- func (c *CentrifugoV1) GetDirectionsDetailedHandler(ec echo.Context) (err error)
- func (c *CentrifugoV1) GetDirectionsHandler(ec echo.Context) (err error)
- func (c *CentrifugoV1) GetHistoryHandler(ec echo.Context) error
- func (c *CentrifugoV1) GetLastActiveThemes(ec echo.Context) (err error)
- func (c *CentrifugoV1) LikeTheme(id int64) (err error)
- func (c *CentrifugoV1) Publish(pub *models.Publish, userID int) error
- func (c *CentrifugoV1) PublishHandler(ec echo.Context) (err error)
- func (c *CentrifugoV1) PutLikeThemes(ec echo.Context) (err error)
- func (c *CentrifugoV1) SaveToDB(chatID, userID int, name, message string) error
- func (c *CentrifugoV1) SelectAllDirections() (data *ArrayOfDirectionData, err error)
- func (c *CentrifugoV1) SelectLastActiveThemes() (data *ArrayOfThemesData, err error)
- func (c *CentrifugoV1) SelectThemesByDirection(id int) (data *ArrayOfThemesData, err error)
- type ChatDataResult
- type DirectionsDataResult
- type ThemeDataResult
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBadAuthRequest = errors.New("bad authorization request")
)
Functions ¶
func ExtractToken ¶
ExtractToken extract token from request
Types ¶
type ArrayOfDirectionData ¶
type ArrayOfDirectionDetailedData ¶
type ArrayOfDirectionDetailedData []models.DirectionDetailed
type ArrayOfThemesData ¶
type ArrayThemeDataResult ¶
type ArrayThemeDataResult httpsrv.ResultAnsw
type CentrifugoV1 ¶
type CentrifugoV1 struct {
// contains filtered or unexported fields
}
func NewCentrifugoV1 ¶
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 (*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
Click to show internal directories.
Click to hide internal directories.