go-micro: github.com/micro/go-micro/util/mux Index | Files

package mux

import "github.com/micro/go-micro/util/mux"

Package mux provides proxy muxing


Package Files


type Server Uses

type Server struct {
    // name of service
    Name string
    // Proxy handler
    Proxy proxy.Proxy

Server is a proxy muxer that incudes the use of the DefaultHandler

func New Uses

func New(name string, p proxy.Proxy) *Server

func (*Server) ProcessMessage Uses

func (s *Server) ProcessMessage(ctx context.Context, msg server.Message) error

func (*Server) ServeRequest Uses

func (s *Server) ServeRequest(ctx context.Context, req server.Request, rsp server.Response) error

Package mux imports 5 packages (graph) and is imported by 6 packages. Updated 2020-01-30. Refresh now. Tools for package owners.