package
0.2.16
Repository: https://github.com/my-ermes-labs/api-go.git
Documentation: pkg.go.dev

# Functions

DefaultAcquireSessionOptions returns the default options to acquire a session.
DefaultBestOffloadTargetsOptions returns the default options to get the best targets to offload.
No description provided by the author
DefaultCreateSessionOptions returns the default options to create a session.
DefaultGarbageCollectSessionsOptions returns the default options to acquire a session.
DefaultOffloadSessionOptions returns the default options for the offloadSession.
DefaultOnloadSessionOptions returns the default options to onload a session.
DefaultResourcesUsageOptions returns the default options to create a session.
DefaultSessionMetadataOptions returns the default options to create a session.
Marshall a session token.
Create a new AcquireSessionOptionsBuilder.
Create a new BestOffloadTargetsOptionsBuilder.
Create a new CreateAndAcquireSessionOptionsBuilder.
Create a new CreateSessionOptionsBuilder.
Create a new GarbageCollectSessionsOptionsBuilder.
No description provided by the author
Create a new OffloadSessionOptionsBuilder.
Create a new OnloadSessionOptionsBuilder.
Create a new ResourcesUsageOptionsBuilder.
NewSessionLocation creates a new session sessionLocation.
Create a new SessionMetadataOptionsBuilder.
NewSessionToken creates a new session token.
NewTokenAfterOffloading creates a new session token after offloading.
Unmarshall a session token.

# Variables

ErrErmes is the base error for all errors in this package.
ErrNoAcquisitionToRelease is returned when there is no acquisition to release.
ErrSessionAlreadyOnloaded is returned when the session is already onloaded.
ErrSessionIdAlreadyExists is returned when a session id already exists.
ErrSessionIsOffloading is returned when an action cannot be performed because a session is offloading.
ErrSessionNotFound is returned when a session is not found.
ErrUnableToOffloadAcquiredSession is returned when the session is unable to offload acquired session.

# Structs

Options to acquire a session.
Builder for CreateSessionOptions.
Options to get the best targets to offload.
No description provided by the author
Options that defines how a session is created and acquired.
Builder for CreateAndAcquireSessionOptions.
Options that defines how a session is created.
Builder for CreateSessionOptions.
Options to start a garbage collection.
Builder for GarbageCollectSessionsOptions.
No description provided by the author
Options for the offloadSession.
Builder for OffloadSessionOptions.
Options to onload a session.
Builder for CreateSessionOptions.
Options that defines how a session is created.
Builder for ResourcesUsageOptions.
The information related to a session that are used to decide the best offload targets.
SessionLocation represents the sessionLocation of a session.
Metadata associated with a session.
Options that defines how a session is created.
Builder for SessionMetadataOptions.
SessionToken represents a session token.

# Interfaces

Commands to acquire and release sessions.
No description provided by the author
No description provided by the author
Commands to create and acquire a session.
Commands to create a new session.
Commands to garbage collect sessions.
No description provided by the author
Commands to onload a session.
Commands to get and update the resources usage of the sessions and the nodes.
Commands to manage the metadata of a session.

# Type aliases

No description provided by the author
No description provided by the author