statping/types/integrations.go

23 lines
636 B
Go
Raw Normal View History

2020-01-03 06:10:25 +00:00
package types
type Integration struct {
ShortName string `json:"name"`
Name string `json:"full_name"`
Description string `json:"description"`
Enabled bool `json:"enabled"`
Fields []*IntegrationField `json:"fields"`
}
type IntegrationField struct {
Name string `json:"name"`
Value interface{} `json:"value"`
Type string `json:"type"`
Description string `json:"description,omitempty"`
MimeType string `json:"mime_type,omitempty"`
}
type Integrator interface {
Get() *Integration
List() ([]*Service, error)
}