auxpb

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package auxpb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_api_v1_auxpb_aux_service_proto protoreflect.FileDescriptor

Functions

func RegisterDSSAuxServiceHandler

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

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

func RegisterDSSAuxServiceHandlerClient

func RegisterDSSAuxServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DSSAuxServiceClient) error

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

func RegisterDSSAuxServiceHandlerFromEndpoint

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

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

func RegisterDSSAuxServiceHandlerServer

func RegisterDSSAuxServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DSSAuxServiceServer) error

RegisterDSSAuxServiceHandlerServer registers the http handlers for service DSSAuxService to "mux". UnaryRPC :call DSSAuxServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterDSSAuxServiceServer

func RegisterDSSAuxServiceServer(s *grpc.Server, srv DSSAuxServiceServer)

Types

type DSSAuxServiceClient

type DSSAuxServiceClient interface {
	// /dss/validate_oauth
	//
	// Validate Oauth token against the DSS.
	ValidateOauth(ctx context.Context, in *ValidateOauthRequest, opts ...grpc.CallOption) (*ValidateOauthResponse, error)
}

DSSAuxServiceClient is the client API for DSSAuxService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type DSSAuxServiceServer

type DSSAuxServiceServer interface {
	// /dss/validate_oauth
	//
	// Validate Oauth token against the DSS.
	ValidateOauth(context.Context, *ValidateOauthRequest) (*ValidateOauthResponse, error)
}

DSSAuxServiceServer is the server API for DSSAuxService service.

type UnimplementedDSSAuxServiceServer

type UnimplementedDSSAuxServiceServer struct {
}

UnimplementedDSSAuxServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedDSSAuxServiceServer) ValidateOauth

type ValidateOauthRequest

type ValidateOauthRequest struct {

	// Validate the owner claim matches the provided owner.
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateOauthRequest) Descriptor deprecated

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

Deprecated: Use ValidateOauthRequest.ProtoReflect.Descriptor instead.

func (*ValidateOauthRequest) GetOwner

func (x *ValidateOauthRequest) GetOwner() string

func (*ValidateOauthRequest) ProtoMessage

func (*ValidateOauthRequest) ProtoMessage()

func (*ValidateOauthRequest) ProtoReflect

func (x *ValidateOauthRequest) ProtoReflect() protoreflect.Message

func (*ValidateOauthRequest) Reset

func (x *ValidateOauthRequest) Reset()

func (*ValidateOauthRequest) String

func (x *ValidateOauthRequest) String() string

type ValidateOauthResponse

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

Validate Oauth token response

func (*ValidateOauthResponse) Descriptor deprecated

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

Deprecated: Use ValidateOauthResponse.ProtoReflect.Descriptor instead.

func (*ValidateOauthResponse) ProtoMessage

func (*ValidateOauthResponse) ProtoMessage()

func (*ValidateOauthResponse) ProtoReflect

func (x *ValidateOauthResponse) ProtoReflect() protoreflect.Message

func (*ValidateOauthResponse) Reset

func (x *ValidateOauthResponse) Reset()

func (*ValidateOauthResponse) String

func (x *ValidateOauthResponse) String() string

Jump to

Keyboard shortcuts

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