Documentation ¶
Index ¶
- type Provider
- func (p *Provider) Authenticate(token string) (*domain.User, error)
- func (p *Provider) CreateImage(file io.ReadCloser) (int64, error)
- func (p *Provider) CreateTask(title, description, status string, assignee int64) error
- func (p *Provider) CreateToken(userId int64) (*string, error)
- func (p *Provider) CreateUser(email, name, password string, avatarId *int64) error
- func (p *Provider) GetAllTasks(status string) ([]*domain.Task, error)
- func (p *Provider) GetImage(id int64) (*domain.Image, error)
- func (p *Provider) GetUser(email, password string) (*domain.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func NewProvider(repository domain.RepositoryProvider) *Provider
func (*Provider) CreateImage ¶
func (p *Provider) CreateImage(file io.ReadCloser) (int64, error)
func (*Provider) CreateTask ¶
func (*Provider) CreateUser ¶
func (*Provider) GetAllTasks ¶
Click to show internal directories.
Click to hide internal directories.