Documentation
¶
Index ¶
Constants ¶
View Source
const ChannelSize = 2048
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsoleSession ¶
type ConsoleSessionManager ¶
type ConsoleSessionManager struct {
// contains filtered or unexported fields
}
func NewConsoleSessionManager ¶
func NewConsoleSessionManager(serviceHandler service.Service, log logrus.FieldLogger, sessionRegistration InternalSessionRegistration) *ConsoleSessionManager
func (*ConsoleSessionManager) CloseSession ¶
func (m *ConsoleSessionManager) CloseSession(ctx context.Context, session *ConsoleSession) error
func (*ConsoleSessionManager) StartSession ¶
func (m *ConsoleSessionManager) StartSession(ctx context.Context, orgId uuid.UUID, deviceName, sessionMetadata string) (*ConsoleSession, error)
type InternalSessionRegistration ¶
type InternalSessionRegistration interface { // Register a session with a given UUID and channels // Those channels will be used to read from and write to the session // in a way that this interface down to the gRPC session is abstracted StartSession(*ConsoleSession) error CloseSession(*ConsoleSession) error }
Click to show internal directories.
Click to hide internal directories.