rest

package
v0.0.0-...-2d88729 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2018 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve()

Serve - initial routes and http server

Types

type AuthorizedUser

type AuthorizedUser struct {
	User        models.User
	Permissions interface{}
	Type        string
}

AuthorizedUser - authorized user data structure

type TokenData

type TokenData struct {
	UserId uint
	Roles  map[int][]string
}

TokenData - token data structure

Jump to

Keyboard shortcuts

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