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 ¶
func AllSessionIDs ¶
Types ¶
type Attachable ¶
Attachable defines a feature that can be exposed on a session
type Caller ¶
type Caller interface {
	Context() context.Context
	Supports(method string) bool
	Conn() *grpc.ClientConn
}
    Caller can invoke requests on the session
type Manager ¶
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(ctx context.Context, w http.ResponseWriter, r *http.Request) error
HandleHTTPRequest handles an incoming HTTP request
type Session ¶
type Session struct {
	// contains filtered or unexported fields
}
    Session is a long running connection between client and a daemon
func NewSession ¶
NewSession returns a new long running session
func (*Session) Allow ¶
func (s *Session) Allow(a Attachable)
Allow enables a given service to be reachable through the grpc session
 Click to show internal directories. 
   Click to hide internal directories.