lic

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildLic

func BuildLic(sign string, ps []*model.PS, count int) *model.License

BuildLic builds the skeleton of a license

func DelEpLic

func DelEpLic(prefix string, sign string, delEps []int) string

DelEpLic creates the license message with only the Ep IDs, for deletion

func DelLic

func DelLic(sign string, prefix string, sid int64) *model.License

DelLic creates the license message with only the Season ID, for deletion

func PrepareXML

func PrepareXML(v *model.License) (body string)

PrepareXML combine the xml data to sync

func RandStringBytesRmndr

func RandStringBytesRmndr(n int) string

RandStringBytesRmndr generates an random string

Types

type Dao

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

Dao dao.

func New

func New(c *conf.Config) (d *Dao)

New create a instance of Dao and return.

func (*Dao) CallRetry

func (d *Dao) CallRetry(c context.Context, url string, xmlBody string) (result *model.Document, err error)

CallRetry retries the xml call

Jump to

Keyboard shortcuts

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