config

package
v0.0.0-...-636a148 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CachePath = "cache.db"
)

Variables

This section is empty.

Functions

func AddBiliCookie

func AddBiliCookie(emailAddr, cookie string) error

func AddRYF

func AddRYF(emailAddr string) error

func AddSFSubsAddr

func AddSFSubsAddr(rssURL string) error

func Close

func Close() error

func SetBiliCookie

func SetBiliCookie(emailAddr, cookie string) error

func SetEmail

func SetEmail(email *Email) error

func SetNeo

func SetNeo(neo *Neo) error

func SetRYF

func SetRYF(emailAddr string) error

func SetSFSubsAddr

func SetSFSubsAddr(rssURL string) error

Types

type BiliBili

type BiliBili struct {
	Cookies map[string]string `json:"cookies"`
}

func GetBiliBili

func GetBiliBili() (*BiliBili, error)

func (*BiliBili) String

func (bili *BiliBili) String() string

type Email

type Email struct {
	Addr  string `json:"addr"`
	Token string `json:"token"`
}

func GetEmail

func GetEmail() (*Email, error)

func (*Email) String

func (e *Email) String() string

type Neo

type Neo struct {
	Host     string `json:"host"`
	Domain   string `json:"domain"`
	Cookies  string `json:"cookies"`
	Services string `json:"services"`
	User     string `json:"user"`
}

func GetNeo

func GetNeo() (*Neo, error)

func (*Neo) String

func (neo *Neo) String() string

type RYF

type RYF struct {
	Users []string `json:"users"`
}

func GetRYF

func GetRYF() (*RYF, error)

func (*RYF) String

func (ryf *RYF) String() string

type Sourceforge

type Sourceforge struct {
	SubsAddr []string `json:"subs_addr"`
}

func GetSourceforge

func GetSourceforge() (*Sourceforge, error)

func (*Sourceforge) String

func (sf *Sourceforge) String() string

Jump to

Keyboard shortcuts

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