Documentation
¶
Index ¶
Constants ¶
View Source
const (
ErrorTypeNomadUpstream = "nomad_upstream"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { Code int `json:"code"` Status string `json:"status"` Type string `json:"type"` Message string `json:"message"` Details string `json:"details"` }
func NewError ¶
func NewError(opts ...ErrorOption) *Error
type ErrorOption ¶
type ErrorOption func(*Error)
func WithCode ¶
func WithCode(code int) ErrorOption
func WithError ¶
func WithError(err error) ErrorOption
func WithMessage ¶
func WithMessage(msg string) ErrorOption
func WithType ¶
func WithType(errType string) ErrorOption
type PipelineServer ¶
type PipelineServer struct {
// contains filtered or unexported fields
}
func NewPipelineServer ¶
func NewPipelineServer(logger *zap.SugaredLogger) (*PipelineServer, error)
func (*PipelineServer) NewHTTPServer ¶
func (ps *PipelineServer) NewHTTPServer(addr string) *http.Server
Click to show internal directories.
Click to hide internal directories.