app

package
v0.0.0-...-e166eca Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

type Claims struct {
	UserID string `json:"UserID"`
	jwt.StandardClaims
}

type Enviornment

type Enviornment struct {
	Port          string
	Debug         bool
	SecretKey     string
	PgHost        string
	PgPort        string
	PgUser        string
	PgPassword    string
	PgDBName      string
	PgSSLMode     string
	PgTZ          string
	RedisHost     string
	RedisPort     string
	RedisPassword string
	RedisDB       int
	MailDomain    string
	MailAPIKey    string
}

Eviornment stores our enviornment variables.

type LoginRequest

type LoginRequest struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type NewUserRequest

type NewUserRequest struct {
	Username  string `json:"username"`
	Firstname string `json:"firstname"`
	Lastname  string `json:"lastname"`
	Email     string `json:"email"`
	Password  string `json:"password"`
}

type Server

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

func NewServer

func NewServer() (*Server, error)

NewServer returns an instance of the server.

func (*Server) Run

func (s *Server) Run()

type UsersOnlyResponse

type UsersOnlyResponse struct {
	Uid string `json:"uid,omitempty"`
}

Jump to

Keyboard shortcuts

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