handlers

package
v0.1.4-alpha-deployment1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func API

func API(r fiber.Router, services *Services, logger *zap.Logger)

API register api routes

Types

type AuthHandlersGroup

type AuthHandlersGroup struct {
}

func NewAuthHandlersGroup

func NewAuthHandlersGroup() *AuthHandlersGroup

func (*AuthHandlersGroup) OAuthCallbackHandler

func (a *AuthHandlersGroup) OAuthCallbackHandler(c *fiber.Ctx) error

OAuthCallbackHandler accept discord oauth requests

type Services

type Services struct {
	Users *users.Service
}

Services contains business logic

func CreateServices

func CreateServices(db *sqlx.DB) *Services

CreateServices creates services

type UsersHandlersGroup

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

func NewUsersHandlersGroup

func NewUsersHandlersGroup(users *users.Service) *UsersHandlersGroup

func (*UsersHandlersGroup) GetUserHandler

func (u *UsersHandlersGroup) GetUserHandler(c *fiber.Ctx) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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