account

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Users = "users"
)

Variables

This section is empty.

Functions

func UsersToTable

func UsersToTable(users []*api.UserAccount)

Types

type Account

type Account interface {
	// Register is used to create a new user on the platform.
	Register(email string, team string, password string) (*api.UserAccount, error)
	// Login is used to login to platform and get a token.
	Login(email string, password string) (string, error)
	// RemoveUser is used to delete a user from the platform.
	RemoveUser(user_id int) error
	// User is used to return the current user.
	User() (*api.UserAccount, error)
}

Account is the interface used to maintain the state of a given team.

func New

func New(url string, home string) Account

Jump to

Keyboard shortcuts

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