domain

package
v0.0.0-...-3f44578 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: BSD-2-Clause Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activity

type Activity struct {
	Message string
}

type Authenticator

type Authenticator interface {
	Authenticate(User) (string, error)
}

type Project

type Project struct {
	ID               int
	Name             string
	Description      string
	CurrentIteration int
}

type User

type User struct {
	Username string
	Password string
	Email    string
	Name     string
	Timezone string
	Initials string
	APIToken string
	// contains filtered or unexported fields
}

func (*User) Authenticate

func (u *User) Authenticate() error

func (User) HasCredentials

func (u User) HasCredentials() bool

func (User) IsAuthenticated

func (u User) IsAuthenticated() bool

func (*User) Login

func (u *User) Login(name, pass string)

func (*User) SetAuthenticator

func (u *User) SetAuthenticator(a Authenticator)

Jump to

Keyboard shortcuts

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