user

package
v0.0.0-...-52f9a01 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: MIT Imports: 8 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 {
	*config.Config
}

func New

func New(configuration *config.Config) *Config

func (*Config) Routes

func (config *Config) Routes() *chi.Mux

Routes

type User

type User struct {
	ID       bson.ObjectId `bson:"_id,omitempty" json:"_id"`
	Mail     string        `json:"mail"`
	Name     string        `json:"name"`
	Password string        `json:"password"`
	Roles    string        `json:"roles"`
	Surname  string        `json:"surname"`
	Username string        `json:"username"`
}

Data model

Jump to

Keyboard shortcuts

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