msgpack

package
v0.0.0-...-dede6bf Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Redirect

type Redirect struct{}

func (*Redirect) Decode

func (r *Redirect) Decode(input []byte) (*shortener.Redirect, error)

Decode the raw msgpack message into Redirect struct. Error might happen only in msgpack.Unmarshal func.

func (*Redirect) Encode

func (r *Redirect) Encode(input *shortener.Redirect) ([]byte, error)

Encode the Redirect struct into the msgpack message. Error might happen only in msgpack.Marshal func.

Jump to

Keyboard shortcuts

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