models

package
v0.0.0-...-0eb0020 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2014 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aniversary

type Aniversary struct {
	Id      string `json:"id"`
	Prefix  string `json:"prefix"`
	Message string `json:"message"`
	Users   string `json:"users"`
	Embed   string `json:"embed"`
	URL     string `json:"url"`
}

func (Aniversary) Create

func (aniversary Aniversary) Create(prefix string, message string, users []string, embed string, url string) (string, bool)

func (Aniversary) Get

func (aniversary Aniversary) Get(id string) *Aniversary

type Token

type Token struct {
	Token  string `json:"token"`
	Secret string `json:"secret"`
}

func (Token) Create

func (token Token) Create(t string, s string) bool

func (Token) Get

func (token Token) Get(t string) *Token

type User

type User struct {
	Name     string `json:"name"`
	Password string `json:"password"`
	Token    string `json:"token"`
}

func (User) Create

func (user User) Create(name string, password string) (*Token, bool)

Jump to

Keyboard shortcuts

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