Documentation ¶ Index ¶ type BaseSession type Session Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type BaseSession ¶ type BaseSession struct { sync.WaitGroup // For no-copy status ID uuid.UUID // Internal ID Peer domain.Peer Incoming bool // Indicate that the instance was created by an external connection LastDial time.Time } type Session ¶ type Session interface { GetID() uuid.UUID GetLastDial() time.Time GetReadChannel(context.Context) (<-chan *pb.Message, error) GetWriteChannel(context.Context) (chan<- *pb.Message, error) GetPeerID() uuid.UUID IsIncoming() bool IsOpen() bool Close(context.Context) } Source Files ¶ View all Source files session.go Directories ¶ Show internal Expand all Path Synopsis websocket Click to show internal directories. Click to hide internal directories.