favicon

package
v0.0.0-...-206c9bf Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: BSD-3-Clause Imports: 10 Imported by: 0

README

favicon

用于响应/favicon.ico的请求,该请求一般由浏览器发起

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Favicon

type Favicon struct {
	Status int    `json:"status"`           // HTTP状态码
	Target string `json:"target,omitempty"` // favicon.ico文件路径
}

func New

func New(config string) (*Favicon, error)

func (*Favicon) Action

func (self *Favicon) Action(resp http.ResponseWriter, req *http.Request) (bool, error)

func (*Favicon) GetName

func (self *Favicon) GetName() string

func (Favicon) MarshalEasyJSON

func (v Favicon) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Favicon) MarshalJSON

func (v Favicon) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Favicon) UnmarshalEasyJSON

func (v *Favicon) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Favicon) UnmarshalJSON

func (v *Favicon) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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