Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
Initialize service Builder and Lookuper
func RegisterEndpoints ¶
RegisterEndpoints bind endpoints to the router
Types ¶
type Endpoint ¶
An Endpoint is a service endpoint that receives a request and returns either a successfully processed response body or an Error. In either case both responses are encoded and returned to the user with the appropriate status code
type Error ¶
type Error struct { XMLName xml.Name `json:"-" xml:"error"` Message string `json:"message,omitempty" xml:"message,omitempty"` StatusCode int `json:"status,omitempty" xml:"status,omitempty"` Err string `json:"err,omitempty" xml:"err,omitempty"` }
Error is a generic API error
type Lookuper ¶
type Lookuper interface { Lookup(r *http.Request) (interface{}, error) Healthcheck(r *http.Request) (interface{}, error) }
Lookuper defines all functionality for an email verification lookup API service
Click to show internal directories.
Click to hide internal directories.