Documentation ¶
Index ¶
Constants ¶
View Source
const ( MessageDraft = iota MessagePublished MessageDisabled )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataAdapter ¶
type DataAdapter interface { Init() MustGetMessageTypes() []*MessageType MustGetMessageSubTypes(id string) []*MessageType GetMessageTypeById(id string) *MessageType SaveMessage(message *Message, user *User) (string, error) GetMessageById(id string) (*Message, error) LoginUser(user *User) (string, error) RegisterUser(user *User) (string, error) LoadUserByID(userID string) (*User, error) GetOwnMessages(userID string, limit, offset int) []*Message GetReceivedMessages(userID string, limit, offset int) []*Message }
type MessageType ¶
type TemplateData ¶
type TemplateData map[string]interface{}
func NewTemplateData ¶
func NewTemplateData(c *Config) TemplateData
func (TemplateData) Set ¶
func (td TemplateData) Set(name string, value interface{})
type Townsita ¶
type Townsita struct {
// contains filtered or unexported fields
}
func New ¶
func New(c *Config, da DataAdapter) *Townsita
func (*Townsita) GetHTTPHandler ¶
type ValidationErrors ¶
type ValidationErrors []string
Click to show internal directories.
Click to hide internal directories.