models

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PaginatedJourneyList added in v0.2.0

type PaginatedJourneyList struct {
	// The journeys contained on this page
	Journeys []*dataPlaneProto.Journey
	// contains filtered or unexported fields
}

A PaginatedJourneyList provides a wrapper around the list journeys response which allows for paginated loading of the journeys.

func NewPaginatedJourneyList added in v0.2.0

func NewPaginatedJourneyList(journeyListResponse *dataPlaneProto.JourneyListResponse,
	listJourneyConfig config.ListJourneyConfig,
	dataPlaneClient *api.DataPlaneClient) PaginatedJourneyList

Creates a new PaginatedJourneyList.

func (*PaginatedJourneyList) HasMore added in v0.2.0

func (ps *PaginatedJourneyList) HasMore() bool

Returns true when there are more journeys to be fetched, otherwise false.

func (*PaginatedJourneyList) NextPage added in v0.2.0

Fetches the next page of journeys.

type PaginatedSessionList

type PaginatedSessionList struct {
	// The sessions contained on this page
	Sessions []*dataPlaneSDKProto.Session
	// contains filtered or unexported fields
}

A PaginatedSessionList provides a wrapper around the list sessions response which allows for paginated loading of the sessions.

func NewPaginatedSessionList

func NewPaginatedSessionList(sessionListResponse *dataPlaneProto.SessionListResponse,
	listSessionConfig config.ListSessionConfig,
	dataPlaneClient *api.DataPlaneClient) PaginatedSessionList

Creates a new PaginatedSessionList.

func (*PaginatedSessionList) HasMore added in v0.2.0

func (ps *PaginatedSessionList) HasMore() bool

Returns true when there are more sessions to be fetched, otherwise false.

func (*PaginatedSessionList) NextPage

Fetches the next page of sessions.

Jump to

Keyboard shortcuts

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