model

package
v0.0.0-...-52192e4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2016 License: GPL-3.0, GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResponse

func GetResponse(url, auth string) []byte

func Post

func Post(url string, r *http.Request) ([]byte, error)

Types

type Activities

type Activities []string

func GetAllActivites

func GetAllActivites(url, auth string) *Activities

type ActivityInfo

type ActivityInfo struct {
	Code int
	Msg  map[string]string
}

func GetInfo

func GetInfo(url, auth string) *ActivityInfo

type NeedArgs

type NeedArgs struct {
	Args []string
}

func GetArgs

func GetArgs(url, auth string) *NeedArgs

type SortableString

type SortableString []string

func (SortableString) Len

func (this SortableString) Len() int

func (SortableString) Less

func (this SortableString) Less(i, j int) bool

func (SortableString) Swap

func (this SortableString) Swap(i, j int)

type User

type User struct {
	Name             string
	SignTime         time.Time
	ExpireTime       time.Time
	SignTimeString   string
	ExpireTimeString string
}

func GetUserInfo

func GetUserInfo(auth string) *User

Jump to

Keyboard shortcuts

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