event

package
v0.0.0-...-c03e8d1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFileCreatedListener

func AddFileCreatedListener(listener FileCreatedListener)

func AddSessionStoppedListener

func AddSessionStoppedListener(listener SessionStoppedListener)

func FileCreated

func FileCreated(createdFile CreatedFile)

func InitIfNeeded

func InitIfNeeded(listener interface{})

func SessionStopped

func SessionStopped(stoppedSession StoppedSession)

Types

type CreatedFile

type CreatedFile struct {
	Event
	Name string
	Type string
}

type Event

type Event struct {
	RequestId uint64
	SessionId string
	Session   *session.Session
}

type FileCreatedListener

type FileCreatedListener interface {
	OnFileCreated(createdFile CreatedFile)
}

type InitRequired

type InitRequired interface {
	Init()
}

type SessionStoppedListener

type SessionStoppedListener interface {
	OnSessionStopped(stoppedSession StoppedSession)
}

type StoppedSession

type StoppedSession struct {
	Event
}

Jump to

Keyboard shortcuts

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