trackerapi

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: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIAuthenticator

type APIAuthenticator struct {
	Resolver request.Resolver
	// contains filtered or unexported fields
}

func NewAPIAuthenticator

func NewAPIAuthenticator() *APIAuthenticator

func (*APIAuthenticator) Authenticate

func (a *APIAuthenticator) Authenticate(u domain.User) (string, error)

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(c Configuration) (*Client, error)

func (*Client) Activity

func (c *Client) Activity(projectID int) fmt.Stringer

func (*Client) Authenticate

func (c *Client) Authenticate(username, password string)

func (*Client) Cleanup

func (c *Client) Cleanup()

func (*Client) IsAuthenticated

func (c *Client) IsAuthenticated() bool

func (*Client) Me

func (c *Client) Me() fmt.Stringer

func (*Client) Projects

func (c *Client) Projects() fmt.Stringer

func (*Client) SetResolver

func (c *Client) SetResolver(resolver request.Resolver)

type Configuration

type Configuration struct {
	Store    store.Store
	Resolver request.Resolver
}

func NewConfiguration

func NewConfiguration() Configuration

func (Configuration) User

func (c Configuration) User() domain.User

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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