Documentation ¶
Index ¶
- Constants
- func IsDecodeFailed(err error) bool
- func IsInvalidConfig(err error) bool
- func IsWait(err error) bool
- func IsWrongTokenError(err error) bool
- type Config
- type Endpoint
- func (e Endpoint) Decoder() kithttp.DecodeRequestFunc
- func (e Endpoint) Encoder() kithttp.EncodeResponseFunc
- func (e Endpoint) Endpoint() kitendpoint.Endpoint
- func (e Endpoint) Method() string
- func (e Endpoint) Middlewares() []kitendpoint.Middleware
- func (e Endpoint) Name() string
- func (e Endpoint) Path() string
- type Request
Constants ¶
View Source
const ( // Method is the HTTP method this endpoint is register for. Method = "POST" // Name identifies the endpoint. It is aligned to the package path. Name = "app/deployer" // Path is the HTTP request path this endpoint is registered for. Path = "/" )
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsWrongTokenError ¶
IsWrongTokenError asserts wrongTokenError.
Types ¶
type Endpoint ¶
type Endpoint struct {
// contains filtered or unexported fields
}
func (Endpoint) Decoder ¶
func (e Endpoint) Decoder() kithttp.DecodeRequestFunc
func (Endpoint) Encoder ¶
func (e Endpoint) Encoder() kithttp.EncodeResponseFunc
func (Endpoint) Endpoint ¶
func (e Endpoint) Endpoint() kitendpoint.Endpoint
func (Endpoint) Middlewares ¶
func (e Endpoint) Middlewares() []kitendpoint.Middleware
type Request ¶
type Request struct { AppName string `json:"app_name"` AppNamespace string `json:"app_namespace"` AppVersion string `json:"app_version"` AuthToken string `json:"auth_token"` LastDeployed v1.Time `json:"last_deployed"` Reason string `json:"reason"` Status string `json:"status"` Version string `json:"version"` }
Click to show internal directories.
Click to hide internal directories.