redmine

package
v0.0.0-...-f682bee Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IssueUrl     = "%s/issues/%d"
	IssueUrlJson = "%s/issues/%s.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(url string, apiKey string, statuses []int, priorities []int) *Client

func (*Client) GetIssue

func (r *Client) GetIssue(number string) (*Issue, error)

func (*Client) GetIssueUrl

func (r *Client) GetIssueUrl(issue *Issue) string

func (*Client) IssueInHighPriority

func (r *Client) IssueInHighPriority(issue *Issue) bool

func (*Client) IssueIsClosed

func (r *Client) IssueIsClosed(issue *Issue) bool

type Dictionary

type Dictionary struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

type Issue

type Issue struct {
	Id         int         `json:"id"`
	Subject    string      `json:"subject"`
	Status     *Dictionary `json:"status"`
	Project    *Dictionary `json:"project"`
	Tracker    *Dictionary `json:"tracker"`
	Priority   *Dictionary `json:"priority"`
	Author     *Dictionary `json:"author"`
	AssignedTo *Dictionary `json:"assigned_to"`
	Category   *Dictionary `json:"category"`
	Version    *Dictionary `json:"fixed_version"`
}

type IssueWrapper

type IssueWrapper struct {
	Issue *Issue `json:"issue"`
}

temporary structure for json decoding

Jump to

Keyboard shortcuts

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