beta

package
v0.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidTestFlightLink is error that will be returned
	// if TestFlight link is invalid.
	ErrInvalidTestFlightLink = errors.New("invalid TestFlight link")

	// ErrUnexpected is error that will be returned
	// when unexpected case is happened.
	ErrUnexpected = errors.New("unexpected error")

	// ErrStatusNotOK is error that will be returned
	// if HTTP status is not 200.
	ErrStatusNotOK = errors.New("HTTP status is not 200")
)

Functions

This section is empty.

Types

type Beta

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

Beta is TestFlight beta. It helps to check whether beta is full. Also, Beta helps to get an app name that beta belongs.

func NewTFBeta

func NewTFBeta(link string) (*Beta, error)

NewTFBeta returns new TestFlight beta. ErrInvalidTestFlightLink can be returned if link is invalid.

func (*Beta) GetAppName

func (r *Beta) GetAppName() string

GetAppName returns app name that beta belongs.

func (r *Beta) GetLink() string

GetLink returns beta link.

func (*Beta) IsFull

func (r *Beta) IsFull() (bool, error)

IsFull returns whether beta is full or not.

func (*Beta) WithClient

func (r *Beta) WithClient(client *http.Client) *Beta

WithClient overrides HTTP client.

Jump to

Keyboard shortcuts

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