Documentation ¶
Overview ¶
Package outofstoremessagetypes is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterOutOfStoreMessageServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterOutOfStoreMessageServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterOutOfStoreMessageServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterOutOfStoreMessageServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterOutOfStoreMessageServiceServer(s grpc.ServiceRegistrar, srv OutOfStoreMessageServiceServer)
- type OutOfStoreMessageServiceClient
- type OutOfStoreMessageServiceServer
- type UnimplementedOutOfStoreMessageServiceServer
- type UnsafeOutOfStoreMessageServiceServer
Constants ¶
const (
OutOfStoreMessageService_OutOfStoreReceive_FullMethodName = "/weshnet.outofstoremessage.v1.OutOfStoreMessageService/OutOfStoreReceive"
)
Variables ¶
var File_outofstoremessagetypes_outofstoremessage_proto protoreflect.FileDescriptor
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.
OutOfStoreMessageService is the service used to open out-of-store messages (e.g. push notifications) It is used to open messages with a lightweight protocol service for mobile backgroup processes.
func NewOutOfStoreMessageServiceClient ¶
func NewOutOfStoreMessageServiceClient(cc grpc.ClientConnInterface) OutOfStoreMessageServiceClient
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.
OutOfStoreMessageService is the service used to open out-of-store messages (e.g. push notifications) It is used to open messages with a lightweight protocol service for mobile backgroup processes.
type UnimplementedOutOfStoreMessageServiceServer ¶
type UnimplementedOutOfStoreMessageServiceServer struct{}
UnimplementedOutOfStoreMessageServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedOutOfStoreMessageServiceServer) OutOfStoreReceive ¶
func (UnimplementedOutOfStoreMessageServiceServer) OutOfStoreReceive(context.Context, *protocoltypes.OutOfStoreReceive_Request) (*protocoltypes.OutOfStoreReceive_Reply, error)
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.