cmdjson

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BugComment

type BugComment struct {
	Id      string   `json:"id"`
	HumanId string   `json:"human_id"`
	Author  Identity `json:"author"`
	Message string   `json:"message"`
}

func NewBugComment

func NewBugComment(comment bug.Comment) BugComment

type BugExcerpt

type BugExcerpt struct {
	Id         string `json:"id"`
	HumanId    string `json:"human_id"`
	CreateTime Time   `json:"create_time"`
	EditTime   Time   `json:"edit_time"`

	Status       string         `json:"status"`
	Labels       []common.Label `json:"labels"`
	Title        string         `json:"title"`
	Actors       []Identity     `json:"actors"`
	Participants []Identity     `json:"participants"`
	Author       Identity       `json:"author"`

	Comments int               `json:"comments"`
	Metadata map[string]string `json:"metadata"`
}

func NewBugExcerpt

func NewBugExcerpt(backend *cache.RepoCache, excerpt *cache.BugExcerpt) (BugExcerpt, error)

type BugSnapshot

type BugSnapshot struct {
	Id           string         `json:"id"`
	HumanId      string         `json:"human_id"`
	CreateTime   Time           `json:"create_time"`
	EditTime     Time           `json:"edit_time"`
	Status       string         `json:"status"`
	Labels       []common.Label `json:"labels"`
	Title        string         `json:"title"`
	Author       Identity       `json:"author"`
	Actors       []Identity     `json:"actors"`
	Participants []Identity     `json:"participants"`
	Comments     []BugComment   `json:"comments"`
}

func NewBugSnapshot

func NewBugSnapshot(snap *bug.Snapshot) BugSnapshot

type Identity

type Identity struct {
	Id      string `json:"id"`
	HumanId string `json:"human_id"`
	Name    string `json:"name"`
	Login   string `json:"login"`
}

func NewIdentity

func NewIdentity(i identity.Interface) Identity

func NewIdentityFromExcerpt

func NewIdentityFromExcerpt(excerpt *cache.IdentityExcerpt) Identity

type Time

type Time struct {
	Timestamp int64        `json:"timestamp"`
	Time      time.Time    `json:"time"`
	Lamport   lamport.Time `json:"lamport,omitempty"`
}

func NewTime

func NewTime(t time.Time, l lamport.Time) Time

Jump to

Keyboard shortcuts

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