black_key

package
v0.0.0-...-9c4fc95 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proxy_proxy_proto protoreflect.FileDescriptor
View Source
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) GetProxy

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.

Jump to

Keyboard shortcuts

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