Documentation ¶
Index ¶
- Constants
- Variables
- type Message
- type RESTApiV1
- func (a *RESTApiV1) Build(resp http.ResponseWriter, req *http.Request)
- func (a *RESTApiV1) GetAllAPIs() []string
- func (a *RESTApiV1) IndexPage(resp http.ResponseWriter, _ *http.Request)
- func (a *RESTApiV1) Serve(addr, originAllowed string) error
- func (a *RESTApiV1) Shutdown() error
- func (a *RESTApiV1) Status(resp http.ResponseWriter, req *http.Request)
- type RESTApiV1Options
Constants ¶
View Source
const ( MessageTypeInfo = "info" MessageTypeWarning = "warning" MessageTypeError = "error" )
View Source
const ( SlugBuildFailed = "build-failed" SlugGetBuildStatusFailed = "get-build-status-failed" SlugBuildStatusNotFound = "build-status-not-found" SlugJSONDecodeFailed = "json-decode-failed" SlugTypeError = "type-error" )
Variables ¶
View Source
var APIPath = &serviceEndpointPath{}
Functions ¶
This section is empty.
Types ¶
type Message ¶
type RESTApiV1 ¶
type RESTApiV1 struct {
// contains filtered or unexported fields
}
func NewRESTApiV1 ¶
func NewRESTApiV1(opts RESTApiV1Options) *RESTApiV1
func (*RESTApiV1) Build ¶
func (a *RESTApiV1) Build(resp http.ResponseWriter, req *http.Request)
Build is the handler for the /api/v1/build endpoint
func (*RESTApiV1) GetAllAPIs ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.