Versions in this module Expand all Collapse all v0 v0.3.1 Oct 17, 2018 v0.3.0 Oct 12, 2018 Changes in this version + func FromContext(ctx context.Context) string + func MethodURL(s, m string) string + func NewContext(ctx context.Context, id string) context.Context + type Attachable interface + Register func(*grpc.Server) + type Caller interface + Conn func() *grpc.ClientConn + Context func() context.Context + Name func() string + SharedKey func() string + Supports func(method string) bool + type Dialer func(ctx context.Context, proto string, meta map[string][]string) (net.Conn, error) + type Manager struct + func NewManager() (*Manager, error) + func (sm *Manager) Get(ctx context.Context, id string) (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 struct + func NewSession(ctx context.Context, name, sharedKey string) (*Session, error) + func (s *Session) Allow(a Attachable) + func (s *Session) Close() error + func (s *Session) ID() string + func (s *Session) Run(ctx context.Context, dialer Dialer) error