interactivesessions

package
v0.0.0-...-e28bd7b Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: BSD-3-Clause Imports: 8 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 interface {
	Session(actor, emulator string, isAdmin bool) (Session, error)
}

Client is an interface for interacting with the Interactive Session microservice. Implementations of this interface should encapsulate information necessary to interact with the microservice, such as Nats and Stan connection information.

func New

New creates a new Interactive Sessions microservice client.

type Session

type Session interface {
	ListInteractiveSessions() ([]cacao_common_http.InteractiveSession, error)

	GetInteractiveSession(interactiveSessionID cacao_common.ID) (cacao_common_http.InteractiveSession, error)
	GetInteractiveSessionByInstanceID(instanceID string) (cacao_common_http.InteractiveSession, error)
	GetInteractiveSessionByInstanceAddress(instanceAddress string) (cacao_common_http.InteractiveSession, error)

	CheckPrerequisitesForInteractiveSession(protocol cacao_common_service.InteractiveSessionProtocol, instanceAddress string, instanceAdminUsername string) (cacao_common_http.InteractiveSessionPrerequisiteCheck, error)

	CreateInteractiveSession(creationRequest cacao_common_http.InteractiveSession) (cacao_common.ID, error)
	ValidateInteractiveSessionCreationRequest(creationRequest cacao_common_http.InteractiveSession) error
	DeactivateInteractiveSession(interactiveSessionID cacao_common.ID) (cacao_common.ID, error)
	ValidateInteractiveSessionDeactivationRequest(interactiveSessionID cacao_common.ID) error
}

Session is an interface for interacting with the Interactive Session microservice on behalf of a user. The purpose of having a session is to consolidate parameters that are common in all or most requests, but are not known at configuration time.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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