Documentation
¶
Index ¶
- Constants
- func NewCancellableWriter(ctx context.Context, w io.Writer) io.Writer
- func NewStreamedResponseWriter(w io.Writer, responseBandwidthRate int64, responseBandwidthBurstSize int64) (*bandwidthlimiter.BandwidthLimitingWriter, context.CancelFunc, error)
- type CancellableWriter
- type CustomerHeaders
- type FlushingWriter
Constants ¶
View Source
const DefaultRefillIntervalMs = 125
Variables ¶
This section is empty.
Functions ¶
func NewStreamedResponseWriter ¶
func NewStreamedResponseWriter(w io.Writer, responseBandwidthRate int64, responseBandwidthBurstSize int64) (*bandwidthlimiter.BandwidthLimitingWriter, context.CancelFunc, error)
Types ¶
type CancellableWriter ¶
type CancellableWriter struct {
// contains filtered or unexported fields
}
type CustomerHeaders ¶
type CustomerHeaders struct {
CognitoIdentityID string `json:"Cognito-Identity-Id"`
CognitoIdentityPoolID string `json:"Cognito-Identity-Pool-Id"`
ClientContext string `json:"Client-Context"`
}
func (CustomerHeaders) Dump ¶
func (s CustomerHeaders) Dump() string
func (*CustomerHeaders) Load ¶
func (s *CustomerHeaders) Load(in string) error
type FlushingWriter ¶
type FlushingWriter struct {
// contains filtered or unexported fields
}
func NewFlushingWriter ¶
func NewFlushingWriter(w io.Writer) *FlushingWriter
func (*FlushingWriter) Flush ¶
func (w *FlushingWriter) Flush()
Click to show internal directories.
Click to hide internal directories.