Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertError ¶
type AlertError interface { error BzError() BzError AlertMessage() *AlertMessage }
AlertError a critical error, which will send an alert.
type AlertMessage ¶
type AlertMessage struct { ProjectName string `json:"project_name,omitempty"` JournalID string `json:"journal_id,omitempty"` ErrorVerbose string `json:"error_verbose,omitempty"` Meta *AlertMessageMeta `json:"meta,omitempty"` Timestamp time.Time `json:"timestamp,omitempty"` }
AlertMessage critical message send by alert
func (*AlertMessage) Unmarshal ¶
func (a *AlertMessage) Unmarshal(raw []byte) error
Unmarshal from json raw
type AlertMessageMeta ¶
type AlertMessageMeta struct { URL string `json:"url,omitempty"` Parameters string `json:"parameters,omitempty"` }
AlertMessageMeta some optional meta
type NotifyHandler ¶
type NotifyHandler func(msg *AlertMessage)
NotifyHandler a handler for send alert
type Payload ¶
type Payload interface { JournalID() string ForwardedByGrpcGateway() bool Service() string Date() string Method() string URI() string Body() []byte }
Payload rest or grpc payload
type SignatureHandler ¶
type SignatureHandler func(authorizationProxy string, payload Payload) (identifier string, ok bool, err error)
SignatureHandler a handler for verify signature
type UserinfoHandler ¶
UserinfoHandler a handler for sso
type Validator ¶
type Validator interface {
Validate() error
}
Validator the validator for protobuf message fields
type WhitelistingHandler ¶
WhitelistingHandler a handler for filter ip
Click to show internal directories.
Click to hide internal directories.