Beispiel #1
0
func New(config *Config) *Streamer {
	return &Streamer{
		arn:      config.arn,
		client:   streams.NewClient(&streams.Config{config.executor}),
		shutdown: make(chan none),
	}
}
Beispiel #2
0
func setUp(t *testing.T) (*assert.Assertions, *mockRequester, *streams.Client) {
	requester := &mockRequester{}
	executor := &dynago.AwsExecutor{Requester: requester}
	client := streams.NewClient(&streams.Config{
		Requester: executor,
	})
	return assert.New(t), requester, client
}