Documentation ¶
Overview ¶
Package kinesis is a generated GoMock package.
Index ¶
- Constants
- type GCPClient
- type GCPPublishResult
- type GCPTopic
- type Handler
- func (handler *Handler) GetConfig() *viper.Viper
- func (handler *Handler) GetContext() *context.Context
- func (handler *Handler) GetGCPClient() GCPClient
- func (handler *Handler) GetKinesisClient() *kinesis.Kinesis
- func (handler *Handler) SetConfig(config *viper.Viper)
- func (handler *Handler) SetContext(context *context.Context)
- func (handler *Handler) SetGCPClient(gcpClient GCPClient)
- func (handler *Handler) SetKinesisClient(kinesisClient *kinesis.Kinesis)
- func (handler *Handler) Shutdown()
- type HandlerInterface
- type Kinesis
- type KinesisHandler
- func (handler *KinesisHandler) CreateStreamHandle(writer http.ResponseWriter, request *http.Request)
- func (handler *KinesisHandler) CreateStreamParseInput(r *http.Request) (*kinesis.CreateStreamInput, error)
- func (handler *KinesisHandler) DeleteStreamHandle(writer http.ResponseWriter, request *http.Request)
- func (handler *KinesisHandler) DeleteStreamParseInput(r *http.Request) (*kinesis.DeleteStreamInput, error)
- func (handler *KinesisHandler) DescribeHandle(writer http.ResponseWriter, request *http.Request)
- func (handler *KinesisHandler) DescribeParseInput(r *http.Request) (*kinesis.DescribeStreamInput, error)
- func (handler *KinesisHandler) GetRecordsHandle(writer http.ResponseWriter, request *http.Request)
- func (handler *KinesisHandler) GetRecordsParseInput(r *http.Request) (*kinesis.GetRecordsInput, error)
- func (handler *KinesisHandler) GetShardIteratorHandle(writer http.ResponseWriter, request *http.Request)
- func (handler *KinesisHandler) GetShardIteratorParseInput(r *http.Request) (*kinesis.GetShardIteratorInput, error)
- func (handler *KinesisHandler) Handle(writer http.ResponseWriter, request *http.Request)
- func (handler *KinesisHandler) PublishHandle(writer http.ResponseWriter, request *http.Request)
- func (handler *KinesisHandler) PublishParseInput(r *http.Request) (*response_type.KinesisRequest, error)
- func (handler *KinesisHandler) Register(mux *mux.Router)
- func (handler *KinesisHandler) StartStreamEncryptionHandle(writer http.ResponseWriter, request *http.Request)
- func (handler *KinesisHandler) StartStreamEncryptionParseInput(r *http.Request) (*kinesis.StartStreamEncryptionInput, error)
- type MockGCPClient
- func (m *MockGCPClient) Close() error
- func (m *MockGCPClient) CreateSubscription(arg0 context.Context, arg1 string, arg2 pubsub.SubscriptionConfig) (*pubsub.Subscription, error)
- func (m *MockGCPClient) CreateTopic(arg0 context.Context, arg1 string) (*pubsub.Topic, error)
- func (m *MockGCPClient) EXPECT() *MockGCPClientMockRecorder
- func (m *MockGCPClient) Subscription(arg0 string) *pubsub.Subscription
- func (m *MockGCPClient) Topic(arg0 string) *pubsub.Topic
- type MockGCPClientMockRecorder
- func (mr *MockGCPClientMockRecorder) Close() *gomock.Call
- func (mr *MockGCPClientMockRecorder) CreateSubscription(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) CreateTopic(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) Subscription(arg0 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) Topic(arg0 interface{}) *gomock.Call
- type MockGCPPublishResult
- type MockGCPPublishResultMockRecorder
- type MockGCPTopic
- func (m *MockGCPTopic) Config(arg0 context.Context) (pubsub.TopicConfig, error)
- func (m *MockGCPTopic) Delete(arg0 context.Context) error
- func (m *MockGCPTopic) EXPECT() *MockGCPTopicMockRecorder
- func (m *MockGCPTopic) Publish(arg0 context.Context, arg1 *pubsub.Message) *pubsub.PublishResult
- func (m *MockGCPTopic) Stop()
- type MockGCPTopicMockRecorder
Constants ¶
const GcpPartitionKey string = "partitionKey"
const GcpShardId string = "shard-0"
const GetRecordCountLimit int = 10000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCPPublishResult ¶
type Handler ¶
type Handler struct { KinesisClient *kinesis.Kinesis GCPClient GCPClient GCPClientToTopic func(topic string, client GCPClient) GCPTopic GCPResultWrapper func(result *pubsub.PublishResult) GCPPublishResult GCPKMSClient *kms.KeyManagementClient Context *context.Context Config *viper.Viper }
func NewHandler ¶
func (*Handler) GetContext ¶
func (*Handler) GetGCPClient ¶
func (*Handler) GetKinesisClient ¶
func (*Handler) SetContext ¶
func (*Handler) SetGCPClient ¶
func (*Handler) SetKinesisClient ¶
type HandlerInterface ¶
type HandlerInterface interface { GetKinesisClient() *kinesis.Kinesis GetGCPClient() GCPClient GetContext() *context.Context GetConfig() *viper.Viper SetKinesisClient(kinesisClient *kinesis.Kinesis) SetGCPClient(gcpClient GCPClient) SetContext(context *context.Context) SetConfig(config *viper.Viper) }
type Kinesis ¶
type Kinesis interface { StartStreamEncryptionParseInput(r *http.Request) (*kinesis.StartStreamEncryptionInput, error) StartStreamEncryptionHandle(writer http.ResponseWriter, request *http.Request) GetRecordsParseInput(r *http.Request) (*kinesis.GetRecordsInput, error) GetRecordsHandle(writer http.ResponseWriter, request *http.Request) GetShardIteratorParseInput(r *http.Request) (*kinesis.GetShardIteratorInput, error) GetShardIteratorHandle(writer http.ResponseWriter, request *http.Request) DescribeParseInput(r *http.Request) (*kinesis.DescribeStreamInput, error) DescribeHandle(writer http.ResponseWriter, request *http.Request) PublishHandle(writer http.ResponseWriter, request *http.Request) PublishParseInput(r *http.Request) (*response_type.KinesisRequest, error) CreateStreamHandle(writer http.ResponseWriter, request *http.Request) CreateStreamParseInput(r *http.Request) (*kinesis.CreateStreamInput, error) DeleteStreamHandle(writer http.ResponseWriter, request *http.Request) DeleteStreamParseInput(r *http.Request) (*kinesis.DeleteStreamInput, error) Register(mux *mux.Router) Handle(writer http.ResponseWriter, request *http.Request) New(handler *Handler) *KinesisHandler }
type KinesisHandler ¶
type KinesisHandler struct {
*Handler
}
func New ¶
func New(handler *Handler) *KinesisHandler
func (*KinesisHandler) CreateStreamHandle ¶
func (handler *KinesisHandler) CreateStreamHandle(writer http.ResponseWriter, request *http.Request)
func (*KinesisHandler) CreateStreamParseInput ¶
func (handler *KinesisHandler) CreateStreamParseInput(r *http.Request) (*kinesis.CreateStreamInput, error)
func (*KinesisHandler) DeleteStreamHandle ¶
func (handler *KinesisHandler) DeleteStreamHandle(writer http.ResponseWriter, request *http.Request)
func (*KinesisHandler) DeleteStreamParseInput ¶
func (handler *KinesisHandler) DeleteStreamParseInput(r *http.Request) (*kinesis.DeleteStreamInput, error)
func (*KinesisHandler) DescribeHandle ¶
func (handler *KinesisHandler) DescribeHandle(writer http.ResponseWriter, request *http.Request)
func (*KinesisHandler) DescribeParseInput ¶
func (handler *KinesisHandler) DescribeParseInput(r *http.Request) (*kinesis.DescribeStreamInput, error)
func (*KinesisHandler) GetRecordsHandle ¶
func (handler *KinesisHandler) GetRecordsHandle(writer http.ResponseWriter, request *http.Request)
func (*KinesisHandler) GetRecordsParseInput ¶
func (handler *KinesisHandler) GetRecordsParseInput(r *http.Request) (*kinesis.GetRecordsInput, error)
func (*KinesisHandler) GetShardIteratorHandle ¶
func (handler *KinesisHandler) GetShardIteratorHandle(writer http.ResponseWriter, request *http.Request)
func (*KinesisHandler) GetShardIteratorParseInput ¶
func (handler *KinesisHandler) GetShardIteratorParseInput(r *http.Request) (*kinesis.GetShardIteratorInput, error)
func (*KinesisHandler) Handle ¶
func (handler *KinesisHandler) Handle(writer http.ResponseWriter, request *http.Request)
func (*KinesisHandler) PublishHandle ¶
func (handler *KinesisHandler) PublishHandle(writer http.ResponseWriter, request *http.Request)
func (*KinesisHandler) PublishParseInput ¶
func (handler *KinesisHandler) PublishParseInput(r *http.Request) (*response_type.KinesisRequest, error)
func (*KinesisHandler) Register ¶
func (handler *KinesisHandler) Register(mux *mux.Router)
func (*KinesisHandler) StartStreamEncryptionHandle ¶
func (handler *KinesisHandler) StartStreamEncryptionHandle(writer http.ResponseWriter, request *http.Request)
func (*KinesisHandler) StartStreamEncryptionParseInput ¶
func (handler *KinesisHandler) StartStreamEncryptionParseInput(r *http.Request) (*kinesis.StartStreamEncryptionInput, error)
type MockGCPClient ¶
type MockGCPClient struct {
// contains filtered or unexported fields
}
MockGCPClient is a mock of GCPClient interface
func NewMockGCPClient ¶
func NewMockGCPClient(ctrl *gomock.Controller) *MockGCPClient
NewMockGCPClient creates a new mock instance
func (*MockGCPClient) CreateSubscription ¶
func (m *MockGCPClient) CreateSubscription(arg0 context.Context, arg1 string, arg2 pubsub.SubscriptionConfig) (*pubsub.Subscription, error)
CreateSubscription mocks base method
func (*MockGCPClient) CreateTopic ¶
CreateTopic mocks base method
func (*MockGCPClient) EXPECT ¶
func (m *MockGCPClient) EXPECT() *MockGCPClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockGCPClient) Subscription ¶
func (m *MockGCPClient) Subscription(arg0 string) *pubsub.Subscription
Subscription mocks base method
type MockGCPClientMockRecorder ¶
type MockGCPClientMockRecorder struct {
// contains filtered or unexported fields
}
MockGCPClientMockRecorder is the mock recorder for MockGCPClient
func (*MockGCPClientMockRecorder) Close ¶
func (mr *MockGCPClientMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockGCPClientMockRecorder) CreateSubscription ¶
func (mr *MockGCPClientMockRecorder) CreateSubscription(arg0, arg1, arg2 interface{}) *gomock.Call
CreateSubscription indicates an expected call of CreateSubscription
func (*MockGCPClientMockRecorder) CreateTopic ¶
func (mr *MockGCPClientMockRecorder) CreateTopic(arg0, arg1 interface{}) *gomock.Call
CreateTopic indicates an expected call of CreateTopic
func (*MockGCPClientMockRecorder) Subscription ¶
func (mr *MockGCPClientMockRecorder) Subscription(arg0 interface{}) *gomock.Call
Subscription indicates an expected call of Subscription
func (*MockGCPClientMockRecorder) Topic ¶
func (mr *MockGCPClientMockRecorder) Topic(arg0 interface{}) *gomock.Call
Topic indicates an expected call of Topic
type MockGCPPublishResult ¶
type MockGCPPublishResult struct {
// contains filtered or unexported fields
}
MockGCPPublishResult is a mock of GCPPublishResult interface
func NewMockGCPPublishResult ¶
func NewMockGCPPublishResult(ctrl *gomock.Controller) *MockGCPPublishResult
NewMockGCPPublishResult creates a new mock instance
func (*MockGCPPublishResult) EXPECT ¶
func (m *MockGCPPublishResult) EXPECT() *MockGCPPublishResultMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockGCPPublishResult) Get ¶
func (m *MockGCPPublishResult) Get(arg0 context.Context) (string, error)
Get mocks base method
func (*MockGCPPublishResult) Ready ¶
func (m *MockGCPPublishResult) Ready() <-chan struct{}
Ready mocks base method
type MockGCPPublishResultMockRecorder ¶
type MockGCPPublishResultMockRecorder struct {
// contains filtered or unexported fields
}
MockGCPPublishResultMockRecorder is the mock recorder for MockGCPPublishResult
func (*MockGCPPublishResultMockRecorder) Get ¶
func (mr *MockGCPPublishResultMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockGCPPublishResultMockRecorder) Ready ¶
func (mr *MockGCPPublishResultMockRecorder) Ready() *gomock.Call
Ready indicates an expected call of Ready
type MockGCPTopic ¶
type MockGCPTopic struct {
// contains filtered or unexported fields
}
MockGCPTopic is a mock of GCPTopic interface
func NewMockGCPTopic ¶
func NewMockGCPTopic(ctrl *gomock.Controller) *MockGCPTopic
NewMockGCPTopic creates a new mock instance
func (*MockGCPTopic) Config ¶
func (m *MockGCPTopic) Config(arg0 context.Context) (pubsub.TopicConfig, error)
Config mocks base method
func (*MockGCPTopic) Delete ¶
func (m *MockGCPTopic) Delete(arg0 context.Context) error
Delete mocks base method
func (*MockGCPTopic) EXPECT ¶
func (m *MockGCPTopic) EXPECT() *MockGCPTopicMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockGCPTopic) Publish ¶
func (m *MockGCPTopic) Publish(arg0 context.Context, arg1 *pubsub.Message) *pubsub.PublishResult
Publish mocks base method
type MockGCPTopicMockRecorder ¶
type MockGCPTopicMockRecorder struct {
// contains filtered or unexported fields
}
MockGCPTopicMockRecorder is the mock recorder for MockGCPTopic
func (*MockGCPTopicMockRecorder) Config ¶
func (mr *MockGCPTopicMockRecorder) Config(arg0 interface{}) *gomock.Call
Config indicates an expected call of Config
func (*MockGCPTopicMockRecorder) Delete ¶
func (mr *MockGCPTopicMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockGCPTopicMockRecorder) Publish ¶
func (mr *MockGCPTopicMockRecorder) Publish(arg0, arg1 interface{}) *gomock.Call
Publish indicates an expected call of Publish
func (*MockGCPTopicMockRecorder) Stop ¶
func (mr *MockGCPTopicMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop