models

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Name

func Name() string

Types

type Action

type Action struct {
	ContentType    string
	Content        string
	DataPath       *string
	Pattern        *string
	FallbackAction *int
	Primary        bool
	Priority       int
	ID             int
}

func FetchAction

func FetchAction(id int) (Action, error)

func FetchActions

func FetchActions(primary bool) ([]Action, error)

func (Action) IsImageType added in v1.0.1

func (a Action) IsImageType() bool

func (Action) IsURLType

func (a Action) IsURLType() bool

type Bot

type Bot struct {
	GroupName string
	GroupID   string
	BotName   string
	Key       string
}

func FetchBot

func FetchBot(id string) (Bot, error)

type ByID added in v1.1.0

type ByID []Action

func (ByID) Len added in v1.1.0

func (b ByID) Len() int

func (ByID) Less added in v1.1.0

func (b ByID) Less(i, j int) bool

func (ByID) Swap added in v1.1.0

func (b ByID) Swap(i, j int)

type ByPriority

type ByPriority []Action

func (ByPriority) Len

func (b ByPriority) Len() int

func (ByPriority) Less

func (b ByPriority) Less(i, j int) bool

func (ByPriority) Swap

func (b ByPriority) Swap(i, j int)

Jump to

Keyboard shortcuts

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