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 IsIncoming() bool GetReadChannel(context.Context) (chan *pb.Message, error) GetWriteChannel(context.Context) (chan *pb.Message, error) Close(context.Context) IsOpen() bool } Source Files ¶ View all Source files session.go Click to show internal directories. Click to hide internal directories.