base: go.pedge.io/base Index | Files

package base

import "go.pedge.io/base"

Index

Package Files

api_server.go base.go base.pb.go base.pb.gw.go

Variables

var (
    // Version is the version.
    Version = &protoversion.Version{
        Major:      0,
        Minor:      0,
        Micro:      1,
        Additional: "dev",
    }
)

func RegisterAPIHandler Uses

func RegisterAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAPIHandler registers the http handlers for service API to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAPIHandlerFromEndpoint Uses

func RegisterAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAPIHandlerFromEndpoint is same as RegisterAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAPIServer Uses

func RegisterAPIServer(s *grpc.Server, srv APIServer)

type APIClient Uses

type APIClient interface {
    Do(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}

func NewAPIClient Uses

func NewAPIClient(cc *grpc.ClientConn) APIClient

type APIServer Uses

type APIServer interface {
    Do(context.Context, *Request) (*Response, error)
}

func NewAPIServer Uses

func NewAPIServer() APIServer

NewAPIServer returns a new APIServer.

type Request Uses

type Request struct {
}

func (*Request) Descriptor Uses

func (*Request) Descriptor() ([]byte, []int)

func (*Request) ProtoMessage Uses

func (*Request) ProtoMessage()

func (*Request) Reset Uses

func (m *Request) Reset()

func (*Request) String Uses

func (m *Request) String() string

type Response Uses

type Response struct {
}

func (*Response) Descriptor Uses

func (*Response) Descriptor() ([]byte, []int)

func (*Response) ProtoMessage Uses

func (*Response) ProtoMessage()

func (*Response) Reset Uses

func (m *Response) Reset()

func (*Response) String Uses

func (m *Response) String() string

Package base imports 13 packages (graph). Updated 2016-12-22. Refresh now. Tools for package owners.