paging

package
v5.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointStatusParams

type EndpointStatusParams struct {
	EventsPage      int // Number of the event page
	EventsPageSize  int // Size of the event page
	ResultsPage     int // Number of the result page
	ResultsPageSize int // Size of the result page
}

EndpointStatusParams represents all parameters that can be used for paging purposes

func NewEndpointStatusParams

func NewEndpointStatusParams() *EndpointStatusParams

NewEndpointStatusParams creates a new EndpointStatusParams

func (*EndpointStatusParams) WithEvents

func (params *EndpointStatusParams) WithEvents(page, pageSize int) *EndpointStatusParams

WithEvents sets the values for EventsPage and EventsPageSize

func (*EndpointStatusParams) WithResults

func (params *EndpointStatusParams) WithResults(page, pageSize int) *EndpointStatusParams

WithResults sets the values for ResultsPage and ResultsPageSize

Jump to

Keyboard shortcuts

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