Documentation ¶
Index ¶
- func GetListLimit(ctx context.Context) int
- func GetMaxSegmentSize(ctx context.Context) (memory.Size, bool)
- func IsWithoutPlainSize(ctx context.Context) bool
- func WithListLimit(ctx context.Context, limit int) context.Context
- func WithMaxSegmentSize(ctx context.Context, segmentSize memory.Size) context.Context
- func WithoutPlainSize(ctx context.Context) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetListLimit ¶ added in v1.7.1
GetListLimit returns value for list limit if exists in context. Only for testing purposes.
func GetMaxSegmentSize ¶
GetMaxSegmentSize returns max segment size from context if exists.
func IsWithoutPlainSize ¶ added in v1.4.6
IsWithoutPlainSize returns true if information about not sending segment plain size exists in context. Only for testing purposes.
func WithListLimit ¶ added in v1.7.1
WithListLimit creates context with information about list limit that will be used with request. Only for testing purposes.
func WithMaxSegmentSize ¶
WithMaxSegmentSize creates context with max segment size for testing purposes.
Created context needs to be used with uplink.OpenProject to manipulate default segment size.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.