types

package
v0.0.0-...-c436d6b Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AlbumContainerType    = ContainerType("album")
	PlaylistContainerType = ContainerType("playlist")
)
View Source
const IDSize = sha256.Size

Variables

View Source
var (
	ErrInvalidContainerType = errors.New("invalid container type")
)

Functions

This section is empty.

Types

type Authorization

type Authorization struct {
	Username string
	Password string
}

Authorization is a struct representing authorization details needed to sign in to use this API.

Currently both Username and Password are required.

type ContainerType

type ContainerType string

ContainerType is the enum that describes the Nixplay container type that holds photos, either album or playlist.

type ID

type ID [IDSize]byte

ID is a unique identifier for objects in this library.

This is implemented as a fixed size array instead of a slice or string to try to save qon heap allocations and thus make this more efficient.

type MD5Hash

type MD5Hash [md5.Size]byte

func (*MD5Hash) UnmarshalText

func (hash *MD5Hash) UnmarshalText(data []byte) error

Jump to

Keyboard shortcuts

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