outofstoremessagetypes

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: Apache-2.0, MIT Imports: 17 Imported by: 1

Documentation

Overview

Package outofstoremessagetypes is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	OutOfStoreMessageService_OutOfStoreReceive_FullMethodName = "/weshnet.outofstoremessage.v1.OutOfStoreMessageService/OutOfStoreReceive"
)

Variables

View Source
var OutOfStoreMessageService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "weshnet.outofstoremessage.v1.OutOfStoreMessageService",
	HandlerType: (*OutOfStoreMessageServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "OutOfStoreReceive",
			Handler:    _OutOfStoreMessageService_OutOfStoreReceive_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "outofstoremessagetypes/outofstoremessage.proto",
}

OutOfStoreMessageService_ServiceDesc is the grpc.ServiceDesc for OutOfStoreMessageService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterOutOfStoreMessageServiceHandler

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

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

func RegisterOutOfStoreMessageServiceHandlerClient

func RegisterOutOfStoreMessageServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client OutOfStoreMessageServiceClient) error

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

func RegisterOutOfStoreMessageServiceHandlerFromEndpoint

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

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

func RegisterOutOfStoreMessageServiceHandlerServer

func RegisterOutOfStoreMessageServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server OutOfStoreMessageServiceServer) error

RegisterOutOfStoreMessageServiceHandlerServer registers the http handlers for service OutOfStoreMessageService to "mux". UnaryRPC :call OutOfStoreMessageServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterOutOfStoreMessageServiceHandlerFromEndpoint instead.

func RegisterOutOfStoreMessageServiceServer

func RegisterOutOfStoreMessageServiceServer(s grpc.ServiceRegistrar, srv OutOfStoreMessageServiceServer)

Types

type OutOfStoreMessageServiceClient

type OutOfStoreMessageServiceClient interface {
	// OutOfStoreReceive parses a payload received outside a synchronized store
	OutOfStoreReceive(ctx context.Context, in *protocoltypes.OutOfStoreReceive_Request, opts ...grpc.CallOption) (*protocoltypes.OutOfStoreReceive_Reply, error)
}

OutOfStoreMessageServiceClient is the client API for OutOfStoreMessageService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type OutOfStoreMessageServiceServer

type OutOfStoreMessageServiceServer interface {
	// OutOfStoreReceive parses a payload received outside a synchronized store
	OutOfStoreReceive(context.Context, *protocoltypes.OutOfStoreReceive_Request) (*protocoltypes.OutOfStoreReceive_Reply, error)
	// contains filtered or unexported methods
}

OutOfStoreMessageServiceServer is the server API for OutOfStoreMessageService service. All implementations must embed UnimplementedOutOfStoreMessageServiceServer for forward compatibility

type UnimplementedOutOfStoreMessageServiceServer

type UnimplementedOutOfStoreMessageServiceServer struct {
}

UnimplementedOutOfStoreMessageServiceServer must be embedded to have forward compatible implementations.

type UnsafeOutOfStoreMessageServiceServer

type UnsafeOutOfStoreMessageServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeOutOfStoreMessageServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OutOfStoreMessageServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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