session
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
- func AllSessionIDs(g Group) (out []string)
- func MethodURL(s, m string) string
- type Attachable
- type Caller
- type Dialer
- type Group
- type Iterator
- type Manager
- func (sm *Manager) Any(ctx context.Context, g Group, f func(context.Context, string, Caller) error) error
- func (sm *Manager) Get(ctx context.Context, id string, noWait bool) (Caller, error)
- func (sm *Manager) HandleConn(ctx context.Context, conn net.Conn, opts map[string][]string) error
- func (sm *Manager) HandleHTTPRequest(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- type Session
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcAllSessionIDs¶added inv0.8.0
Types¶
typeAttachable¶
Attachable defines a feature that can be exposed on a session
typeCaller¶
type Caller interface {Context()context.ContextSupports(methodstring)boolConn() *grpc.ClientConnSharedKey()string}Caller can invoke requests on the session
typeManager¶
type Manager struct {// contains filtered or unexported fields}Manager is a controller for accessing currently active sessions
func (*Manager)HandleConn¶
HandleConn handles an incoming raw connection
func (*Manager)HandleHTTPRequest¶
func (sm *Manager) HandleHTTPRequest(ctxcontext.Context, whttp.ResponseWriter, r *http.Request)error
HandleHTTPRequest handles an incoming HTTP request
typeSession¶
type Session struct {// contains filtered or unexported fields}Session is a long running connection between client and a daemon
funcNewSession¶
NewSession returns a new long running session
func (*Session)Allow¶
func (s *Session) Allow(aAttachable)
Allow enables a given service to be reachable through the grpc session