Documentation ¶
Overview ¶
Package rest represent different types of rest types and its manipulations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWTData ¶
type JWTData struct { URL string `json:"url"` EXP int `json:"exp"` Secret string `json:"secret"` Data jwt.MapClaims `json:"data"` }
JWTData represents jwt token details.
type Resource ¶
type Resource struct { Name string `json:"name"` Headers map[string]string `json:"headers,omitempty"` }
Resource respresent a single resource in rest api.
type URL ¶
type URL struct { URL string `json:"url"` Method string `json:"method,omitempty"` ContentType string `json:"content_type,omitempty"` File string `json:"file,omitempty"` StatusCode int `json:"status,omitempty"` Headers map[string]string `json:"headers,omitempty"` }
URL type represent a url resource in rest api Url is mandatory. ContentType defaults to application/json if not provided. Status code default to 200 Method defaults to GET if not provided.
Click to show internal directories.
Click to hide internal directories.