Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MyService ¶
type MyService struct {
// contains filtered or unexported fields
}
MyService is an example mock service to work as demonstration support for Biff library.
func (*MyService) Login ¶
Login will find a user by email, check password and put in session. If all the process is right, logged user will be returned, otherwise nil.
func (*MyService) RegisterUser ¶
RegisterUser will register a new user with a password. If user already exists a nil value will be returned.
func (*MyService) RetrieveUser ¶
RetrieveUser will find a user by email. If user do not exist, nil will be returned.
func (*MyService) WriteComment ¶
WriteComment add a comment to the system. User should be logged in.
Click to show internal directories.
Click to hide internal directories.