Documentation ¶
Overview ¶
TODO: move elsewhere
Index ¶
- Variables
- func AddRoutes(mux *http.ServeMux, server *QProxyServer) error
- type CompressionHandler
- type ListQueuesServerStream
- type QProxyServer
- func (s *QProxyServer) AckMessages(ctx context.Context, in *rpc.AckMessagesRequest) (resp *rpc.AckMessagesResponse, err error)
- func (s *QProxyServer) CreateQueue(ctx context.Context, in *rpc.CreateQueueRequest) (resp *rpc.CreateQueueResponse, err error)
- func (s *QProxyServer) DeleteQueue(ctx context.Context, in *rpc.DeleteQueueRequest) (resp *rpc.DeleteQueueResponse, err error)
- func (s *QProxyServer) GetMessages(ctx context.Context, in *rpc.GetMessagesRequest) (resp *rpc.GetMessagesResponse, err error)
- func (s *QProxyServer) GetQueue(ctx context.Context, in *rpc.GetQueueRequest) (resp *rpc.GetQueueResponse, err error)
- func (s *QProxyServer) Healthcheck(ctx context.Context, in *rpc.HealthcheckRequest) (resp *rpc.HealthcheckResponse, err error)
- func (s *QProxyServer) ListQueues(in *rpc.ListQueuesRequest, stream rpc.QProxy_ListQueuesServer) (err error)
- func (s *QProxyServer) ModifyAckDeadline(ctx context.Context, in *rpc.ModifyAckDeadlineRequest) (resp *rpc.ModifyAckDeadlineResponse, err error)
- func (s *QProxyServer) ModifyQueue(ctx context.Context, in *rpc.ModifyQueueRequest) (resp *rpc.ModifyQueueResponse, err error)
- func (s *QProxyServer) ParseError(err error) string
- func (s *QProxyServer) PublishMessages(ctx context.Context, in *rpc.PublishMessagesRequest) (resp *rpc.PublishMessagesResponse, err error)
- func (s *QProxyServer) PurgeQueue(ctx context.Context, in *rpc.PurgeQueueRequest) (resp *rpc.PurgeQueueResponse, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var RequestErrorCodes = []string{ request.ErrCodeSerialization, request.ErrCodeRead, request.ErrCodeResponseTimeout, request.ErrCodeInvalidPresignExpire, request.CanceledErrorCode, request.ErrCodeRequestError, request.InvalidParameterErrCode, request.ParamRequiredErrCode, request.ParamMinValueErrCode, request.ParamMinLenErrCode, request.ParamMaxLenErrCode, request.ParamFormatErrCode, request.HandlerResponseTimeout, request.WaiterResourceNotReadyErrorCode, }
Functions ¶
Types ¶
type CompressionHandler ¶
type CompressionHandler struct {
Handler func(http.ResponseWriter, *http.Request)
}
CompressionHandler is a wrapper around http.Handler which adds suitable response compression based on the client's Accept-Encoding headers.
func (CompressionHandler) ServeHTTP ¶
func (c CompressionHandler) ServeHTTP(writer http.ResponseWriter, req *http.Request)
ServeHTTP adds compression to the original http.Handler's ServeHTTP() method.
type ListQueuesServerStream ¶
type ListQueuesServerStream struct { rpc.QProxy_ListQueuesServer NewCtx context.Context }
func (ListQueuesServerStream) Context ¶
func (x ListQueuesServerStream) Context() context.Context
type QProxyServer ¶
type QProxyServer struct {
// contains filtered or unexported fields
}
func (*QProxyServer) AckMessages ¶
func (s *QProxyServer) AckMessages(ctx context.Context, in *rpc.AckMessagesRequest) (resp *rpc.AckMessagesResponse, err error)
func (*QProxyServer) CreateQueue ¶
func (s *QProxyServer) CreateQueue(ctx context.Context, in *rpc.CreateQueueRequest) (resp *rpc.CreateQueueResponse, err error)
func (*QProxyServer) DeleteQueue ¶
func (s *QProxyServer) DeleteQueue(ctx context.Context, in *rpc.DeleteQueueRequest) (resp *rpc.DeleteQueueResponse, err error)
func (*QProxyServer) GetMessages ¶
func (s *QProxyServer) GetMessages(ctx context.Context, in *rpc.GetMessagesRequest) (resp *rpc.GetMessagesResponse, err error)
func (*QProxyServer) GetQueue ¶
func (s *QProxyServer) GetQueue(ctx context.Context, in *rpc.GetQueueRequest) (resp *rpc.GetQueueResponse, err error)
func (*QProxyServer) Healthcheck ¶
func (s *QProxyServer) Healthcheck(ctx context.Context, in *rpc.HealthcheckRequest) (resp *rpc.HealthcheckResponse, err error)
func (*QProxyServer) ListQueues ¶
func (s *QProxyServer) ListQueues(in *rpc.ListQueuesRequest, stream rpc.QProxy_ListQueuesServer) (err error)
func (*QProxyServer) ModifyAckDeadline ¶
func (s *QProxyServer) ModifyAckDeadline(ctx context.Context, in *rpc.ModifyAckDeadlineRequest) (resp *rpc.ModifyAckDeadlineResponse, err error)
func (*QProxyServer) ModifyQueue ¶
func (s *QProxyServer) ModifyQueue(ctx context.Context, in *rpc.ModifyQueueRequest) (resp *rpc.ModifyQueueResponse, err error)
func (*QProxyServer) ParseError ¶ added in v0.0.19
func (s *QProxyServer) ParseError(err error) string
func (*QProxyServer) PublishMessages ¶
func (s *QProxyServer) PublishMessages(ctx context.Context, in *rpc.PublishMessagesRequest) (resp *rpc.PublishMessagesResponse, err error)
func (*QProxyServer) PurgeQueue ¶
func (s *QProxyServer) PurgeQueue(ctx context.Context, in *rpc.PurgeQueueRequest) (resp *rpc.PurgeQueueResponse, err error)
Click to show internal directories.
Click to hide internal directories.