Documentation ¶
Index ¶
Constants ¶
const ServiceName = "incidents"
ServiceName is the name of the service as defined in the design. This is the same value that is set in the endpoint request contexts under the ServiceKey key.
Variables ¶
var MethodNames = [2]string{"find", "list all"}
MethodNames lists the service method names as defined in the design. These are the same values that are set in the endpoint request contexts under the MethodKey key.
Functions ¶
func NewFindEndpoint ¶
NewFindEndpoint returns an endpoint function that calls the method "find" of service "incidents".
func NewListAllEndpoint ¶
NewListAllEndpoint returns an endpoint function that calls the method "list all" of service "incidents".
Types ¶
type Client ¶
Client is the "incidents" service client.
type Endpoints ¶
Endpoints wraps the "incidents" service endpoints.
func NewEndpoints ¶
NewEndpoints wraps the methods of the "incidents" service with endpoints.
type FindPayload ¶
type FindPayload struct { // Unique ID of the incident ID uint64 }
FindPayload is the payload type of the incidents service find method.
type Incident ¶
type Incident struct { // Unique ID of the incident ID *uint64 // Date the incident occurred Date *string // Date the incident occurred DateClosed *string // Permissions associated with incident Permissions *string // The severity of the incident Severity *int // The short title of the incident Title *string // The detailed description of the incident Summary *string // The scope of impact of this incident Scope *string // What group or individual caused the initial incident ResponsibleParty *string // A list of the affected customers AffectedCustomers []string // The original cause of the incident RootCause *string // The slack channel for incident discussions SlackChannel *string // When the incident was submitted CreatedAt *string // When the incident was last updated UpdatedAt *string }
Incident is the result type of the incidents service find method.
type LimitPayload ¶
type LimitPayload struct { // Limit the number of results Limit *int32 }
LimitPayload is the payload type of the incidents service list all method.
type Service ¶
type Service interface { // Find implements find. Find(context.Context, *FindPayload) (res *Incident, err error) // ListAll implements list all. ListAll(context.Context, *LimitPayload) (res []*Incident, err error) }
The incident service handles the creation and querying of security incidents