models

package
v0.0.0-...-425066b Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2016 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func String

func String(v string) *string

String returns a pointer to of the string value passed in.

func StringValue

func StringValue(v *string) string

StringValue returns the value of the string pointer passed in or "" if the pointer is nil.

Types

type Authentication

type Authentication struct {
	Login    string `schema:"login"`
	Password string `schema:"password"`
}

Authentication used to parse Authentication requests

type User

type User struct {
	ID       *string `json:"id,omitempty" gorethink:"id,omitempty"`
	Login    *string `json:"login,omitempty" gorethink:"login"`
	Email    *string `json:"email,omitempty" gorethink:"email"`
	Name     *string `json:"name,omitempty" gorethink:"name,omitempty"`
	Password *string `json:"password,omitempty" gorethink:"password"`
}

User represents a authinator user.

func NewUser

func NewUser(id, login, email, name string) *User

NewUser helper method to create a user

Jump to

Keyboard shortcuts

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