thriftrw: go.uber.org/thriftrw/internal/multiplex Index | Files

package multiplex

import "go.uber.org/thriftrw/internal/multiplex"

Index

Package Files

client.go handler.go

func NewClient Uses

func NewClient(name string, c envelope.Client) envelope.Client

NewClient builds a new multiplexing client.

name is the name of the service for which requests are being sent through this client.

type Handler Uses

type Handler struct {
    // contains filtered or unexported fields
}

Handler implements a service multiplexer

func NewHandler Uses

func NewHandler() Handler

NewHandler builds a new handler.

func (Handler) Handle Uses

func (h Handler) Handle(name string, req wire.Value) (wire.Value, error)

Handle handles the given request, dispatching to one of the registered services.

func (Handler) Put Uses

func (h Handler) Put(name string, service envelope.Handler)

Put adds the given service to the multiplexer.

Package multiplex imports 3 packages (graph) and is imported by 7 packages. Updated 2020-01-17. Refresh now. Tools for package owners.