release

package
v0.0.0-...-33384a8 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BranchTest    = "Test"
	BranchRelease = "Release"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New() *Client

func NewWithClient

func NewWithClient(client *resty.Client) *Client

func (*Client) Latest

func (c *Client) Latest(stable bool) (Release, error)

Latest return the latest release

func (*Client) List

func (c *Client) List(page int) ([]Release, error)

List returns the release list for the given page

func (*Client) Pinned

func (c *Client) Pinned() (Release, error)

Pinned return the pinned latest release

type Release

type Release struct {
	ID          int    `json:"id"`
	Version     int    `json:"version"`
	FullVersion string `json:"full_version"`
	Title       string `json:"title"`
	URL         string `json:"url"`
	Date        string `json:"date"`
	Type        string `json:"type"`
	Branch      string `json:"branch"`
	Pinned      bool   `json:"pinned"`
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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