Documentation
¶
Overview ¶
client package provides an OpsGenie Heartbeat client Port (interface) and factory. TODO: this should probably be moved to upsteam SDK as it currently doesn't use interfaces so it's a pain to use in tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Port ¶
type Port interface {
Ping(context context.Context, heartbeatName string) (*heartbeat.PingResult, error)
Get(context context.Context, heartbeatName string) (*heartbeat.GetResult, error)
List(context context.Context) (*heartbeat.ListResult, error)
Update(context context.Context, request *heartbeat.UpdateRequest) (*heartbeat.HeartbeatInfo, error)
Add(context context.Context, request *heartbeat.AddRequest) (*heartbeat.AddResult, error)
Enable(context context.Context, heartbeatName string) (*heartbeat.HeartbeatInfo, error)
Disable(context context.Context, heartbeatName string) (*heartbeat.HeartbeatInfo, error)
Delete(context context.Context, heartbeatName string) (*heartbeat.DeleteResult, error)
}
Click to show internal directories.
Click to hide internal directories.