Documentation ¶
Index ¶
- Variables
- func CreateDiscussion(discussion *Discussion) error
- func CreateEmail(email *Email) error
- func CreateGroup(group *Group) error
- func CreatePost(post *Post) error
- func CreateTopic(topic *Topic) error
- func CreateUser(user *User) error
- func Models() []interface{}
- type Discussion
- type Email
- type Group
- type Post
- type Topic
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDiscussionWithoutSinglePost = errors.New("a Discussion must be created with a single Post")
View Source
var ErrEmptyContent = errors.New("empty Content not allowed")
View Source
var ErrEmptyDiscussionID = errors.New("empty DiscussionID not allowed")
View Source
var ErrEmptyName = errors.New("empty Name not allowed")
View Source
var ErrEmptyPassword = errors.New("empty Password not allowed")
View Source
var ErrEmptyTitle = errors.New("empty Title not allowed")
View Source
var ErrEmptyTopicID = errors.New("empty TopicID not allowed")
View Source
var ErrEmptyUserID = errors.New("empty UserID/AuthorID not allowed")
View Source
var ErrEmptyUserName = errors.New("empty UserName not allowed")
Functions ¶
func CreateDiscussion ¶
func CreateDiscussion(discussion *Discussion) error
func CreateEmail ¶
func CreateGroup ¶
func CreatePost ¶
func CreateTopic ¶
func CreateUser ¶
Types ¶
type Discussion ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.