fetcher

package
v0.0.0-...-b394286 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileClient

type FileClient struct {
	// contains filtered or unexported fields
}

func (*FileClient) GetAllInstances

func (c *FileClient) GetAllInstances() ([]ers.Instance, error)

func (*FileClient) GetInstanceById

func (c *FileClient) GetInstanceById(id string) (*ers.Instance, error)

type InitialFetcher

type InitialFetcher struct {
	// contains filtered or unexported fields
}

func (InitialFetcher) GetAllInstances

func (e InitialFetcher) GetAllInstances() ([]ers.Instance, error)

func (InitialFetcher) GetInstanceById

func (e InitialFetcher) GetInstanceById(id string) (*ers.Instance, error)

type InstanceFetcher

type InstanceFetcher interface {
	GetAllInstances() ([]ers.Instance, error)
	GetInstanceById(id string) (*ers.Instance, error)
}

func NewFileClient

func NewFileClient(filename string) InstanceFetcher

func NewInitialFetcher

func NewInitialFetcher(client client.Client, pageStart, pageSize, pageLimit int) InstanceFetcher

Jump to

Keyboard shortcuts

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