serializer

package
v0.0.0-...-b17f1b0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 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{}

Redirect is an implementation of shortener.Encoder

func (*Redirect) Decode

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

Decode receives json message in bytes and convert to pointer of shortener.Redirect

func (*Redirect) Encode

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

Encode receives a pointer of shortener.Redirect and returns json message in bytes

Jump to

Keyboard shortcuts

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