transformer

package
v0.0.0-...-63ac2f8 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpandReq

type ExpandReq struct {
	Shorten string `json:"shorten,omitempty"`
}

type ExpandResp

type ExpandResp struct {
	Url string `json:"url,omitempty"`
}

type ShortenReq

type ShortenReq struct {
	Url string `json:"url,omitempty"`
}

type ShortenResp

type ShortenResp struct {
	Shorten string `json:"shorten,omitempty"`
}

type Transformer

type Transformer interface {
	Expand(ctx context.Context, in *ExpandReq) (*ExpandResp, error)
	Shorten(ctx context.Context, in *ShortenReq) (*ShortenResp, error)
}

func NewTransformer

func NewTransformer(cli zrpc.Client) Transformer

Jump to

Keyboard shortcuts

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