Documentation ¶
Index ¶
- type Handler
- func (handler *Handler) CreateHandle(writer http.ResponseWriter, request *http.Request)
- func (handler *Handler) CreateHandleParseInput(r *http.Request) (*sqs.CreateQueueInput, error)
- func (handler *Handler) DeleteHandle(writer http.ResponseWriter, request *http.Request)
- func (handler *Handler) DeleteHandleParseInput(r *http.Request) (*sqs.DeleteQueueInput, error)
- func (handler *Handler) DeleteMessageBatchHandle(writer http.ResponseWriter, request *http.Request)
- func (handler *Handler) DeleteMessageBatchHandleParseInput(r *http.Request) (*sqs.DeleteMessageBatchInput, error)
- func (handler *Handler) DeleteMessageHandle(writer http.ResponseWriter, request *http.Request)
- func (handler *Handler) DeleteMessageHandleParseInput(r *http.Request) (*sqs.DeleteMessageInput, error)
- func (handler *Handler) GetConfig() *viper.Viper
- func (handler *Handler) GetContext() *context.Context
- func (handler *Handler) GetGCPClient() kinesis.GCPClient
- func (handler *Handler) GetSqsClient() *sqs.SQS
- func (handler *Handler) Handle(writer http.ResponseWriter, request *http.Request)
- func (handler *Handler) ListHandle(writer http.ResponseWriter, request *http.Request)
- func (handler *Handler) ListHandleParseInput(r *http.Request) (*sqs.ListQueuesInput, error)
- func (handler *Handler) PurgeHandle(writer http.ResponseWriter, request *http.Request)
- func (handler *Handler) PurgeHandleParseInput(r *http.Request) (*sqs.PurgeQueueInput, error)
- func (handler *Handler) ReceiveHandle(writer http.ResponseWriter, request *http.Request)
- func (handler *Handler) ReceiveHandleParseInput(r *http.Request) (*sqs.ReceiveMessageInput, error)
- func (handler *Handler) Register(mux *mux.Router)
- func (handler *Handler) SendBatchHandle(writer http.ResponseWriter, request *http.Request)
- func (handler *Handler) SendBatchHandleParseInput(r *http.Request) (*sqs.SendMessageBatchInput, error)
- func (handler *Handler) SendHandle(writer http.ResponseWriter, request *http.Request)
- func (handler *Handler) SendHandleParseInput(r *http.Request) (*sqs.SendMessageInput, error)
- func (handler *Handler) SetConfig(config *viper.Viper)
- func (handler *Handler) SetContext(context *context.Context)
- func (handler *Handler) SetGCPClient(gcpClient kinesis.GCPClient)
- func (handler *Handler) SetSqsClient(sqsClient *sqs.SQS)
- func (handler *Handler) Shutdown()
- type HandlerInterface
- type MessageAttributeNameAndValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { SqsClient *sqs.SQS GCPClient kinesis.GCPClient GCPClientToTopic func(topic string, client kinesis.GCPClient) kinesis.GCPTopic GCPResultWrapper func(result *pubsub.PublishResult) kinesis.GCPPublishResult GCPKMSClient *kms.KeyManagementClient GCPClientToSubscription func(client kinesis.GCPClient, id string) Context *context.Context Config *viper.Viper ToAck map[string]chan bool }
func NewHandler ¶
func (*Handler) CreateHandle ¶
func (handler *Handler) CreateHandle(writer http.ResponseWriter, request *http.Request)
func (*Handler) CreateHandleParseInput ¶
func (*Handler) DeleteHandle ¶
func (handler *Handler) DeleteHandle(writer http.ResponseWriter, request *http.Request)
func (*Handler) DeleteHandleParseInput ¶
func (*Handler) DeleteMessageBatchHandle ¶
func (handler *Handler) DeleteMessageBatchHandle(writer http.ResponseWriter, request *http.Request)
func (*Handler) DeleteMessageBatchHandleParseInput ¶
func (*Handler) DeleteMessageHandle ¶
func (handler *Handler) DeleteMessageHandle(writer http.ResponseWriter, request *http.Request)
func (*Handler) DeleteMessageHandleParseInput ¶
func (*Handler) GetContext ¶
func (*Handler) GetGCPClient ¶
func (*Handler) GetSqsClient ¶
func (*Handler) Handle ¶
func (handler *Handler) Handle(writer http.ResponseWriter, request *http.Request)
func (*Handler) ListHandle ¶
func (handler *Handler) ListHandle(writer http.ResponseWriter, request *http.Request)
func (*Handler) ListHandleParseInput ¶
func (*Handler) PurgeHandle ¶
func (handler *Handler) PurgeHandle(writer http.ResponseWriter, request *http.Request)
func (*Handler) PurgeHandleParseInput ¶
func (*Handler) ReceiveHandle ¶
func (handler *Handler) ReceiveHandle(writer http.ResponseWriter, request *http.Request)
func (*Handler) ReceiveHandleParseInput ¶
func (*Handler) SendBatchHandle ¶
func (handler *Handler) SendBatchHandle(writer http.ResponseWriter, request *http.Request)
func (*Handler) SendBatchHandleParseInput ¶
func (*Handler) SendHandle ¶
func (handler *Handler) SendHandle(writer http.ResponseWriter, request *http.Request)
func (*Handler) SendHandleParseInput ¶
func (*Handler) SetContext ¶
func (*Handler) SetGCPClient ¶
func (*Handler) SetSqsClient ¶
type HandlerInterface ¶
type HandlerInterface interface { GetSqsClient() *sqs.SQS GetGCPClient() kinesis.GCPClient GetContext() *context.Context GetConfig() *viper.Viper SetSqsClient(sqsClient *sqs.SQS) SetGCPClient(gcpClient kinesis.GCPClient) SetContext(context *context.Context) SetConfig(config *viper.Viper) Register(mux *mux.Router) New(handler *Handler) *Handler Handle(writer http.ResponseWriter, request *http.Request) ListHandle(writer http.ResponseWriter, request *http.Request) ListHandleParseInput(r *http.Request) (*sqs.ListQueuesInput, error) CreateHandle(writer http.ResponseWriter, request *http.Request) CreateHandleParseInput(r *http.Request) (*sqs.CreateQueueInput, error) PurgeHandle(writer http.ResponseWriter, request *http.Request) PurgeHandleParseInput(r *http.Request) (*sqs.PurgeQueueInput, error) DeleteHandle(writer http.ResponseWriter, request *http.Request) DeleteHandleParseInput(r *http.Request) (*sqs.DeleteQueueInput, error) SendHandle(writer http.ResponseWriter, request *http.Request) SendHandleParseInput(r *http.Request) (*sqs.SendMessageInput, error) SendBatchHandle(writer http.ResponseWriter, request *http.Request) SendBatchHandleParseInput(r *http.Request) (*sqs.SendMessageBatchInput, error) ReceiveHandle(writer http.ResponseWriter, request *http.Request) ReceiveHandleParseInput(r *http.Request) (*sqs.ReceiveMessageInput, error) DeleteMessageHandle(writer http.ResponseWriter, request *http.Request) DeleteMessageHandleParseInput(r *http.Request) (*sqs.DeleteMessageInput, error) DeleteMessageBatchHandle(writer http.ResponseWriter, request *http.Request) DeleteMessageBatchHandleParseInput(r *http.Request) (*sqs.DeleteMessageBatchInput, error) }
type MessageAttributeNameAndValue ¶
type MessageAttributeNameAndValue struct { Name *string Value *sqs.MessageAttributeValue }
Click to show internal directories.
Click to hide internal directories.