Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EC2Handler ¶
type EC2Handler struct { }
func (*EC2Handler) InstanceStatus ¶
func (ec2Handler *EC2Handler) InstanceStatus(ctx context.Context) (statuses []EC2Status, err error)
func (*EC2Handler) StartInstance ¶
func (ec2Handler *EC2Handler) StartInstance(ctx context.Context) (err error)
func (*EC2Handler) StopInstance ¶
func (ec2Handler *EC2Handler) StopInstance(ctx context.Context) (err error)
type EC2Interface ¶
type EC2Interface interface { StartInstance(ctx context.Context) error StopInstance(ctx context.Context) error InstanceStatus(ctx context.Context) ([]EC2Status, error) }
func NewEC2Handler ¶
func NewEC2Handler() EC2Interface
type KafkaProducer ¶
type KafkaProducer struct{}
type KafkaProducerInterface ¶
func NewProducer ¶
func NewProducer() KafkaProducerInterface
type KafkaRequest ¶
type KafkaRequest struct {
Message string `json:"message"`
}
Click to show internal directories.
Click to hide internal directories.