Documentation

Overview

    Package proxy is a transparent proxy built on the go-micro/server

    Index

    Constants

    This section is empty.

    Variables

    View Source
    var (
    	DefaultEndpoint = "localhost:9090"
    )

    Functions

    func WithClient

    func WithClient(c client.Client) options.Option

      WithClient sets the client

      func WithEndpoint

      func WithEndpoint(e string) options.Option

        WithEndpoint sets a proxy endpoint

        func WithLink(name string, c client.Client) options.Option

          WithLink sets a link for outbound requests

          func WithRouter

          func WithRouter(r router.Router) options.Option

            WithRouter specifies the router to use

            Types

            type Proxy

            type Proxy interface {
            	options.Options
            	// ProcessMessage handles inbound messages
            	ProcessMessage(context.Context, server.Message) error
            	// ServeRequest handles inbound requests
            	ServeRequest(context.Context, server.Request, server.Response) error
            }

              Proxy can be used as a proxy server for go-micro services

              Source Files

              Directories

              Path Synopsis
              Package grpc transparently forwards the grpc protocol using a go-micro client.
              Package grpc transparently forwards the grpc protocol using a go-micro client.
              Package http provides a micro rpc to http proxy
              Package http provides a micro rpc to http proxy
              Package mucp transparently forwards the incoming request using a go-micro client.
              Package mucp transparently forwards the incoming request using a go-micro client.