common

package
v0.0.0-...-920ada6 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 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 ErrorResponse

type ErrorResponse struct {
	StatucCode int
	Data       echo.Map
}

ErrorResponse usecase

func (*ErrorResponse) GetData

func (r *ErrorResponse) GetData() echo.Map

GetData Get ehco Map data

func (*ErrorResponse) GetStatusCode

func (r *ErrorResponse) GetStatusCode() int

GetStatusCode Get HTTP status code

type Response

type Response interface {
	GetStatusCode() int
	GetData() echo.Map
}

Response represent the oauth2's response

func NewErrorResponse

func NewErrorResponse(err error) Response

NewErrorResponse will create a new NewErrorResponse

Jump to

Keyboard shortcuts

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