aliasdirectlink

package
v0.0.0-...-eb22c10 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKitHandler

func NewKitHandler(ctx context.Context, ep *Endpoint) *kithttp.Server

NewKitHandler create new kit handler

func Run

func Run()

Run the alias direct link service

Types

type Endpoint

type Endpoint struct {
	M *metric.Metric
	C *ogoneservice.Config
}

Endpoint for Alias Direct Link

func (*Endpoint) Response

func (ep *Endpoint) Response(r *Request) (*Response, error)

Response for Alias Direct Link request

type Request

type Request struct {
	OrderID string `json:"orderId"`
	Amount  string `json:","`
	//	Currency string `json:"currency"`
	Alias string `json:"alias"`
}

Request for Alias direct link

func NewRequest

func NewRequest() *Request

NewRequest create new request

type Response

type Response struct {
	V   string `json:"v"`
	Err string `json:"err,omitempty"` // errors don't define JSON marshaling
}

Response for Alias Direct Link request

Jump to

Keyboard shortcuts

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