testuplink

package
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2022 License: MIT Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetListLimit added in v1.7.1

func GetListLimit(ctx context.Context) int

GetListLimit returns value for list limit if exists in context. Only for testing purposes.

func GetMaxSegmentSize

func GetMaxSegmentSize(ctx context.Context) (memory.Size, bool)

GetMaxSegmentSize returns max segment size from context if exists.

func IsWithoutPlainSize added in v1.4.6

func IsWithoutPlainSize(ctx context.Context) bool

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

func WithListLimit(ctx context.Context, limit int) context.Context

WithListLimit creates context with information about list limit that will be used with request. Only for testing purposes.

func WithMaxSegmentSize

func WithMaxSegmentSize(ctx context.Context, segmentSize memory.Size) context.Context

WithMaxSegmentSize creates context with max segment size for testing purposes.

Created context needs to be used with uplink.OpenProject to manipulate default segment size.

func WithoutPlainSize added in v1.4.6

func WithoutPlainSize(ctx context.Context) context.Context

WithoutPlainSize creates context with information that segment plain size shouldn't be sent. Only for testing purposes.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL