vyze

package
v0.0.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Service          *service.ServiceClient
	System           *system.SystemClient
	Universes        map[string]*system.Universe
	SelectedUniverse string
}

func NewClient

func NewClient(serviceClient *service.ServiceClient, systemClient *system.SystemClient) Client

func (*Client) LoadUniverse

func (v *Client) LoadUniverse(name string) (*system.Universe, error)

func (*Client) Universe

func (v *Client) Universe() *system.Universe

type Q

type Q[N any] struct {
	Type      system.EndpointType
	Client    Client
	Universe  *system.Universe
	ModelID   core.ID
	ModelNode system.Node
	// contains filtered or unexported fields
}

func QueryReference

func QueryReference[N any](c Client, ep string) Q[N]

func (Q[N]) Equals

func (q Q[N]) Equals(path string, value any) Q[N]

func (Q[N]) Filter

func (q Q[N]) Filter(path string, operator system.OperatorType, value any) Q[N]

func (Q[N]) GetObject

func (q Q[N]) GetObject() (N, error)

func (Q[N]) GetObjects

func (q Q[N]) GetObjects() ([]N, error)

func (Q[N]) Limit

func (q Q[N]) Limit(limit int) Q[N]

func (Q[N]) Model

func (q Q[N]) Model(model string) Q[N]

func (Q[N]) Object

func (q Q[N]) Object(id core.ID) Q[N]

func (Q[N]) Offset

func (q Q[N]) Offset(offset int) Q[N]

func (Q[N]) PutObject

func (q Q[N]) PutObject(obj N) (N, error)

func (Q[N]) PutObjects

func (q Q[N]) PutObjects(objs []N) ([]N, error)

func (Q[N]) Slice

func (q Q[N]) Slice(offset int, limit int) Q[N]

func (Q[N]) Sort

func (q Q[N]) Sort(path string, asc bool) Q[N]

Jump to

Keyboard shortcuts

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