v1

package
v0.0.0-...-4bcbab6 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Version  string
	Revision string
}

Config : Config struct

type Handlers

type Handlers struct {
	Repo      repository.Repository
	Bus       *hub.Hub
	Logger    *zap.Logger
	Config    *config.Config
	LDAP      ldap.LDAP
	Wireguard wireguard.Wireguard
}

Handlers : Handler struct

func (*Handlers) GetOwnProfile

func (h *Handlers) GetOwnProfile(c echo.Context) error

func (*Handlers) LoginUser

func (h *Handlers) LoginUser(c echo.Context) error

func (*Handlers) LogoutUser

func (h *Handlers) LogoutUser(c echo.Context) error

TODO: Implement logout

func (*Handlers) Setup

func (h *Handlers) Setup(e *echo.Group)

type JWTTokenDetails

type JWTTokenDetails struct {
	AccessToken string
	Expires     int64
}

type JWTUser

type JWTUser struct {
	Username     string `json:"username"`
	AuthStrategy string `json:"authStrategy"`
}

type PostLoginRequest

type PostLoginRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type UserLogin

type UserLogin struct {
	Username  string `json:"username"`
	Token     string `json:"token"`
	ExpiresAt int64  `json:"expiresAt"`
}

Jump to

Keyboard shortcuts

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