shorten

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Plugin = plugins.Plugin{
	Config: &Config{},
	Inject: New,
}

Functions

This section is empty.

Types

type AddModel

type AddModel struct {
	URL    string `json:"url"`
	Source string `json:"source"`
}

func (AddModel) MarshalEasyJSON added in v1.3.1

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (AddModel) MarshalJSON added in v1.3.1

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

MarshalJSON supports json.Marshaler interface

func (*AddModel) UnmarshalEasyJSON added in v1.3.1

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AddModel) UnmarshalJSON added in v1.3.1

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

UnmarshalJSON supports json.Unmarshaler interface

type Config

type Config struct {
	Shorten string `yaml:"shorten_string"`
}

func (*Config) Default

func (v *Config) Default()

type Shorten

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

func New

func (*Shorten) Add

func (v *Shorten) Add(ctx web.Context)

func (*Shorten) Down

func (v *Shorten) Down() error

func (*Shorten) Index

func (v *Shorten) Index(ctx web.Context)

func (*Shorten) Up

func (v *Shorten) Up() error

Jump to

Keyboard shortcuts

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