entity

package
v0.0.0-...-6cbd6f6 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Profiles []Profile `json:"profiles"`
}

func NewConfig

func NewConfig() (*Config, error)

func (*Config) DecrypterInstall

func (c *Config) DecrypterInstall(name string, decrypter *Decrypter) error

func (*Config) DecrypterUninstall

func (c *Config) DecrypterUninstall(name string) error

func (*Config) Save

func (c *Config) Save() error

func (*Config) SelectDecrypter

func (c *Config) SelectDecrypter(name string) *Decrypter

type Decrypter

type Decrypter struct {
	Type       string     `json:"type"`
	Properties Properties `json:"properties"`
}

func NewDecrypter

func NewDecrypter(Type string, properties Properties) *Decrypter

type M3u8URL

type M3u8URL struct {
	Encrypted string    `json:"encrypted" form:"encrypted"`
	PlainURL  string    `json:"plain_url" form:"plain_url"`
	TsURLPart TsURLPart `json:"ts_url_part" form:"ts_url_part"`
}

func NewM3u8URL

func NewM3u8URL(v string) *M3u8URL

type Profile

type Profile struct {
	Name      string    `json:"name"`
	Decrypter Decrypter `json:"decrypter"`
}

type Properties

type Properties struct {
	Cmd []string `json:"cmd,omitempty" yaml:"cmd,omitempty"`

	BaseURL string `json:"baseURL,omitempty" yaml:"baseURL,omitempty"`
	Token   string `json:"token,omitempty" yaml:"token,omitempty"`
}

func (*Properties) String

func (p *Properties) String() string

type TsURLPart

type TsURLPart struct {
	Host  string `json:"host" form:"host"`
	Path  string `json:"path" form:"path"`
	Query string `json:"query" form:"query"`
}

Jump to

Keyboard shortcuts

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