Documentation
¶
Index ¶
Constants ¶
View Source
const ( PlexTVURL = "https://plex.tv/api/v2" DefaultTimeout = 30 * time.Second DefaultClientID = "plexcli" DefaultProduct = "plexcli" DefaultVersion = "1.0.0" DefaultPlatform = "Go" StatusOK = 200 StatusCreated = 201 )
Variables ¶
Functions ¶
Types ¶
type AuthMethod ¶
type AutoAuth ¶
type AutoAuth struct {
// contains filtered or unexported fields
}
func NewAutoAuth ¶
func NewAutoAuthWithClientID ¶
func (*AutoAuth) Authenticate ¶
type PasswordAuth ¶
type PasswordAuth struct {
// contains filtered or unexported fields
}
func NewPasswordAuth ¶
func NewPasswordAuth(username, password string) *PasswordAuth
func NewPasswordAuthWithClientID ¶
func NewPasswordAuthWithClientID(username, password, clientID string) *PasswordAuth
func (*PasswordAuth) Authenticate ¶
func (p *PasswordAuth) Authenticate(ctx context.Context) (string, error)
func (*PasswordAuth) Name ¶
func (p *PasswordAuth) Name() string
type TokenAuth ¶
type TokenAuth struct {
// contains filtered or unexported fields
}
func NewTokenAuth ¶
func (*TokenAuth) Authenticate ¶
Click to show internal directories.
Click to hide internal directories.