tokens

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package tokens provides access to tokens via the Lighthouse API. http://help.lighthouseapp.com/kb/api/users-and-membership.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(s *lighthouse.Service) *Service

func (*Service) Get

func (s *Service) Get(tokenStr string) (*Token, error)

type Token

type Token struct {
	CreatedAt *time.Time `json:"created_at"`
	Note      string     `json:"note"`
	ProjectID int        `json:"project_id"`
	ReadOnly  bool       `json:"read_only"`
	Token     string     `json:"token"`
	UserID    int        `json:"user_id"`
}

Jump to

Keyboard shortcuts

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