isp

package
v2.1.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package isp is a generated protocol buffer package.

It is generated from these files:

proto/backend_service.proto

It has these top-level messages:

Package isp is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterBackendServiceHandler

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

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

func RegisterBackendServiceHandlerClient

func RegisterBackendServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BackendServiceClient) error

RegisterBackendServiceHandler registers the http handlers for service BackendService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BackendServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BackendServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BackendServiceClient" to call the correct interceptors.

func RegisterBackendServiceHandlerFromEndpoint

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

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

func RegisterBackendServiceServer

func RegisterBackendServiceServer(s *grpc.Server, srv BackendServiceServer)

Types

type BackendServiceClient

type BackendServiceClient interface {
	// ===== SYSTEM =====
	Request(ctx context.Context, in *google_protobuf1.Struct, opts ...grpc.CallOption) (*google_protobuf1.Struct, error)
	Requests(ctx context.Context, in *google_protobuf1.Struct, opts ...grpc.CallOption) (*google_protobuf1.ListValue, error)
}

func NewBackendServiceClient

func NewBackendServiceClient(cc *grpc.ClientConn) BackendServiceClient

type BackendServiceServer

type BackendServiceServer interface {
	// ===== SYSTEM =====
	Request(context.Context, *google_protobuf1.Struct) (*google_protobuf1.Struct, error)
	Requests(context.Context, *google_protobuf1.Struct) (*google_protobuf1.ListValue, error)
}

Directories

Path Synopsis
Package isp is a generated protocol buffer package.
Package isp is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL