Documentation ¶
Index ¶
- Variables
- func RegisterProxyServer(s grpc.ServiceRegistrar, srv ProxyServer)
- type CreateRelayEventRequest
- func (*CreateRelayEventRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRelayEventRequest) GetIdentifier() string
- func (x *CreateRelayEventRequest) GetKey() string
- func (*CreateRelayEventRequest) ProtoMessage()
- func (x *CreateRelayEventRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRelayEventRequest) Reset()
- func (x *CreateRelayEventRequest) String() string
- type CreateRelayEventResponse
- func (*CreateRelayEventResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRelayEventResponse) GetStatusCode() string
- func (*CreateRelayEventResponse) ProtoMessage()
- func (x *CreateRelayEventResponse) ProtoReflect() protoreflect.Message
- func (x *CreateRelayEventResponse) Reset()
- func (x *CreateRelayEventResponse) String() string
- type GetProxyRequest
- func (*GetProxyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetProxyRequest) GetIdentifier() string
- func (x *GetProxyRequest) GetKey() string
- func (*GetProxyRequest) ProtoMessage()
- func (x *GetProxyRequest) ProtoReflect() protoreflect.Message
- func (x *GetProxyRequest) Reset()
- func (x *GetProxyRequest) String() string
- type GetProxyResponse
- func (*GetProxyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetProxyResponse) GetStatusCode() string
- func (x *GetProxyResponse) GetUrl() string
- func (*GetProxyResponse) ProtoMessage()
- func (x *GetProxyResponse) ProtoReflect() protoreflect.Message
- func (x *GetProxyResponse) Reset()
- func (x *GetProxyResponse) String() string
- type ProxyClient
- type ProxyServer
- type UnimplementedProxyServer
- type UnsafeProxyServer
Constants ¶
This section is empty.
Variables ¶
var File_proxy_proxy_proto protoreflect.FileDescriptor
var Proxy_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proxy.Proxy", HandlerType: (*ProxyServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetProxy", Handler: _Proxy_GetProxy_Handler, }, { MethodName: "CreateRelayEvent", Handler: _Proxy_CreateRelayEvent_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proxy/proxy.proto", }
Proxy_ServiceDesc is the grpc.ServiceDesc for Proxy service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterProxyServer ¶
func RegisterProxyServer(s grpc.ServiceRegistrar, srv ProxyServer)
Types ¶
type CreateRelayEventRequest ¶
type CreateRelayEventRequest struct { Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*CreateRelayEventRequest) Descriptor
deprecated
func (*CreateRelayEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRelayEventRequest.ProtoReflect.Descriptor instead.
func (*CreateRelayEventRequest) GetIdentifier ¶
func (x *CreateRelayEventRequest) GetIdentifier() string
func (*CreateRelayEventRequest) GetKey ¶
func (x *CreateRelayEventRequest) GetKey() string
func (*CreateRelayEventRequest) ProtoMessage ¶
func (*CreateRelayEventRequest) ProtoMessage()
func (*CreateRelayEventRequest) ProtoReflect ¶
func (x *CreateRelayEventRequest) ProtoReflect() protoreflect.Message
func (*CreateRelayEventRequest) Reset ¶
func (x *CreateRelayEventRequest) Reset()
func (*CreateRelayEventRequest) String ¶
func (x *CreateRelayEventRequest) String() string
type CreateRelayEventResponse ¶
type CreateRelayEventResponse struct { StatusCode string `protobuf:"bytes,1,opt,name=statusCode,proto3" json:"statusCode,omitempty"` // contains filtered or unexported fields }
func (*CreateRelayEventResponse) Descriptor
deprecated
func (*CreateRelayEventResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateRelayEventResponse.ProtoReflect.Descriptor instead.
func (*CreateRelayEventResponse) GetStatusCode ¶
func (x *CreateRelayEventResponse) GetStatusCode() string
func (*CreateRelayEventResponse) ProtoMessage ¶
func (*CreateRelayEventResponse) ProtoMessage()
func (*CreateRelayEventResponse) ProtoReflect ¶
func (x *CreateRelayEventResponse) ProtoReflect() protoreflect.Message
func (*CreateRelayEventResponse) Reset ¶
func (x *CreateRelayEventResponse) Reset()
func (*CreateRelayEventResponse) String ¶
func (x *CreateRelayEventResponse) String() string
type GetProxyRequest ¶
type GetProxyRequest struct { Identifier *string `protobuf:"bytes,1,opt,name=identifier,proto3,oneof" json:"identifier,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*GetProxyRequest) Descriptor
deprecated
func (*GetProxyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProxyRequest.ProtoReflect.Descriptor instead.
func (*GetProxyRequest) GetIdentifier ¶
func (x *GetProxyRequest) GetIdentifier() string
func (*GetProxyRequest) GetKey ¶
func (x *GetProxyRequest) GetKey() string
func (*GetProxyRequest) ProtoMessage ¶
func (*GetProxyRequest) ProtoMessage()
func (*GetProxyRequest) ProtoReflect ¶
func (x *GetProxyRequest) ProtoReflect() protoreflect.Message
func (*GetProxyRequest) Reset ¶
func (x *GetProxyRequest) Reset()
func (*GetProxyRequest) String ¶
func (x *GetProxyRequest) String() string
type GetProxyResponse ¶
type GetProxyResponse struct { StatusCode string `protobuf:"bytes,1,opt,name=statusCode,proto3" json:"statusCode,omitempty"` Url *string `protobuf:"bytes,2,opt,name=url,proto3,oneof" json:"url,omitempty"` // contains filtered or unexported fields }
func (*GetProxyResponse) Descriptor
deprecated
func (*GetProxyResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetProxyResponse.ProtoReflect.Descriptor instead.
func (*GetProxyResponse) GetStatusCode ¶
func (x *GetProxyResponse) GetStatusCode() string
func (*GetProxyResponse) GetUrl ¶
func (x *GetProxyResponse) GetUrl() string
func (*GetProxyResponse) ProtoMessage ¶
func (*GetProxyResponse) ProtoMessage()
func (*GetProxyResponse) ProtoReflect ¶
func (x *GetProxyResponse) ProtoReflect() protoreflect.Message
func (*GetProxyResponse) Reset ¶
func (x *GetProxyResponse) Reset()
func (*GetProxyResponse) String ¶
func (x *GetProxyResponse) String() string
type ProxyClient ¶
type ProxyClient interface { GetProxy(ctx context.Context, in *GetProxyRequest, opts ...grpc.CallOption) (*GetProxyResponse, error) CreateRelayEvent(ctx context.Context, in *CreateRelayEventRequest, opts ...grpc.CallOption) (*CreateRelayEventResponse, error) }
ProxyClient is the client API for Proxy 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.
func NewProxyClient ¶
func NewProxyClient(cc grpc.ClientConnInterface) ProxyClient
type ProxyServer ¶
type ProxyServer interface { GetProxy(context.Context, *GetProxyRequest) (*GetProxyResponse, error) CreateRelayEvent(context.Context, *CreateRelayEventRequest) (*CreateRelayEventResponse, error) // contains filtered or unexported methods }
ProxyServer is the server API for Proxy service. All implementations must embed UnimplementedProxyServer for forward compatibility
type UnimplementedProxyServer ¶
type UnimplementedProxyServer struct { }
UnimplementedProxyServer must be embedded to have forward compatible implementations.
func (UnimplementedProxyServer) CreateRelayEvent ¶
func (UnimplementedProxyServer) CreateRelayEvent(context.Context, *CreateRelayEventRequest) (*CreateRelayEventResponse, error)
func (UnimplementedProxyServer) GetProxy ¶
func (UnimplementedProxyServer) GetProxy(context.Context, *GetProxyRequest) (*GetProxyResponse, error)
type UnsafeProxyServer ¶
type UnsafeProxyServer interface {
// contains filtered or unexported methods
}
UnsafeProxyServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProxyServer will result in compilation errors.