Help us shape the future of Go! Take the 2026 Go Developer Survey

pusher

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Payload

type Payload struct {
	SubjectId    int    // ${id}
	SubjectName  string // ${name}
	DownLoadName string // ${dlname}
	Episode      string // ${epi}
	Size         int    // ${size}
}

Payload can customize template such as the following format:

 <body>
	 <h1>bgmi_name: ${name}</h1>
	 <h2>epi: ${epi}</h2>
	 <ul>
		 <li>bmgiTVid: ${id}</li>
		 <li>file_name: ${dlname}</li>
		 <li>file_size: ${size}</li>
	 </ul>
	 <img src="http://api.bgm.tv/v0/subjects/${id}/image?type=medium">
	 <p>dl_compl</p>
	 <p>Enjoy it,</p>
	 <p>AniCat</p>
	 </div>
 </body>

type Pusher

type Pusher interface {
	Push(p Payload) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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