Documentation ¶ Index ¶ func Run() type Session func NewSession(proto string) (*Session, error) func (s *Session) Join(ws *websocket.Conn, jwt *config.JWT, owner bool, unlock func()) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Run ¶ func Run() Run is an export method that serves occamy proxy Types ¶ type Session ¶ type Session struct { ID string // contains filtered or unexported fields } Session is an occamy proxy session that shares connection within an user group func NewSession ¶ func NewSession(proto string) (*Session, error) NewSession creates a new occamy proxy session func (*Session) Join ¶ func (s *Session) Join(ws *websocket.Conn, jwt *config.JWT, owner bool, unlock func()) error Join adds the given socket as a new user to the given process, automatically reading/writing from the socket via read/write threads. The given socket, parser, and any associated resources will be freed unless the user is not added successfully. Source Files ¶ View all Source files connection.go routers.go session.go Click to show internal directories. Click to hide internal directories.