cloud

package
v1.7.22 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Opcode_name = map[int32]string{
		0: "UNSPECFIED",
		1: "TEXT_FRAME",
		2: "BINARY_FRAME",
	}
	Opcode_value = map[string]int32{
		"UNSPECFIED":   0,
		"TEXT_FRAME":   1,
		"BINARY_FRAME": 2,
	}
)

Enum value maps for Opcode.

View Source
var File_proto_service_proto protoreflect.FileDescriptor
View Source
var TestKubeCloudAPI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cloud.TestKubeCloudAPI",
	HandlerType: (*TestKubeCloudAPIServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Execute",
			Handler:       _TestKubeCloudAPI_Execute_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
		{
			StreamName:    "Send",
			Handler:       _TestKubeCloudAPI_Send_Handler,
			ClientStreams: true,
		},
	},
	Metadata: "proto/service.proto",
}

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

Functions

func RegisterTestKubeCloudAPIServer

func RegisterTestKubeCloudAPIServer(s grpc.ServiceRegistrar, srv TestKubeCloudAPIServer)

Types

type ExecuteRequest

type ExecuteRequest struct {
	Method  string                  `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
	Url     string                  `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	Headers map[string]*HeaderValue `` /* 155-byte string literal not displayed */
	Body    []byte                  `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecuteRequest) Descriptor deprecated

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

Deprecated: Use ExecuteRequest.ProtoReflect.Descriptor instead.

func (*ExecuteRequest) GetBody

func (x *ExecuteRequest) GetBody() []byte

func (*ExecuteRequest) GetHeaders

func (x *ExecuteRequest) GetHeaders() map[string]*HeaderValue

func (*ExecuteRequest) GetMethod

func (x *ExecuteRequest) GetMethod() string

func (*ExecuteRequest) GetUrl

func (x *ExecuteRequest) GetUrl() string

func (*ExecuteRequest) ProtoMessage

func (*ExecuteRequest) ProtoMessage()

func (*ExecuteRequest) ProtoReflect

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

func (*ExecuteRequest) Reset

func (x *ExecuteRequest) Reset()

func (*ExecuteRequest) String

func (x *ExecuteRequest) String() string

type ExecuteResponse

type ExecuteResponse struct {
	Status  int64                   `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Headers map[string]*HeaderValue `` /* 155-byte string literal not displayed */
	Body    []byte                  `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecuteResponse) Descriptor deprecated

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

Deprecated: Use ExecuteResponse.ProtoReflect.Descriptor instead.

func (*ExecuteResponse) GetBody

func (x *ExecuteResponse) GetBody() []byte

func (*ExecuteResponse) GetHeaders

func (x *ExecuteResponse) GetHeaders() map[string]*HeaderValue

func (*ExecuteResponse) GetStatus

func (x *ExecuteResponse) GetStatus() int64

func (*ExecuteResponse) ProtoMessage

func (*ExecuteResponse) ProtoMessage()

func (*ExecuteResponse) ProtoReflect

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

func (*ExecuteResponse) Reset

func (x *ExecuteResponse) Reset()

func (*ExecuteResponse) String

func (x *ExecuteResponse) String() string

type HeaderValue

type HeaderValue struct {
	Header []string `protobuf:"bytes,1,rep,name=header,proto3" json:"header,omitempty"`
	// contains filtered or unexported fields
}

func (*HeaderValue) Descriptor deprecated

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

Deprecated: Use HeaderValue.ProtoReflect.Descriptor instead.

func (*HeaderValue) GetHeader

func (x *HeaderValue) GetHeader() []string

func (*HeaderValue) ProtoMessage

func (*HeaderValue) ProtoMessage()

func (*HeaderValue) ProtoReflect

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

func (*HeaderValue) Reset

func (x *HeaderValue) Reset()

func (*HeaderValue) String

func (x *HeaderValue) String() string

type Opcode added in v1.7.21

type Opcode int32
const (
	Opcode_UNSPECFIED   Opcode = 0
	Opcode_TEXT_FRAME   Opcode = 1
	Opcode_BINARY_FRAME Opcode = 2
)

func (Opcode) Descriptor added in v1.7.21

func (Opcode) Descriptor() protoreflect.EnumDescriptor

func (Opcode) Enum added in v1.7.21

func (x Opcode) Enum() *Opcode

func (Opcode) EnumDescriptor deprecated added in v1.7.21

func (Opcode) EnumDescriptor() ([]byte, []int)

Deprecated: Use Opcode.Descriptor instead.

func (Opcode) Number added in v1.7.21

func (x Opcode) Number() protoreflect.EnumNumber

func (Opcode) String added in v1.7.21

func (x Opcode) String() string

func (Opcode) Type added in v1.7.21

func (Opcode) Type() protoreflect.EnumType

type TestKubeCloudAPIClient

type TestKubeCloudAPIClient interface {
	Execute(ctx context.Context, opts ...grpc.CallOption) (TestKubeCloudAPI_ExecuteClient, error)
	Send(ctx context.Context, opts ...grpc.CallOption) (TestKubeCloudAPI_SendClient, error)
}

TestKubeCloudAPIClient is the client API for TestKubeCloudAPI 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 TestKubeCloudAPIServer

type TestKubeCloudAPIServer interface {
	Execute(TestKubeCloudAPI_ExecuteServer) error
	Send(TestKubeCloudAPI_SendServer) error
	// contains filtered or unexported methods
}

TestKubeCloudAPIServer is the server API for TestKubeCloudAPI service. All implementations must embed UnimplementedTestKubeCloudAPIServer for forward compatibility

type TestKubeCloudAPI_ExecuteClient

type TestKubeCloudAPI_ExecuteClient interface {
	Send(*ExecuteResponse) error
	Recv() (*ExecuteRequest, error)
	grpc.ClientStream
}

type TestKubeCloudAPI_ExecuteServer

type TestKubeCloudAPI_ExecuteServer interface {
	Send(*ExecuteRequest) error
	Recv() (*ExecuteResponse, error)
	grpc.ServerStream
}

type TestKubeCloudAPI_SendClient added in v1.7.21

type TestKubeCloudAPI_SendClient interface {
	Send(*WebsocketData) error
	CloseAndRecv() (*emptypb.Empty, error)
	grpc.ClientStream
}

type TestKubeCloudAPI_SendServer added in v1.7.21

type TestKubeCloudAPI_SendServer interface {
	SendAndClose(*emptypb.Empty) error
	Recv() (*WebsocketData, error)
	grpc.ServerStream
}

type UnimplementedTestKubeCloudAPIServer

type UnimplementedTestKubeCloudAPIServer struct {
}

UnimplementedTestKubeCloudAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedTestKubeCloudAPIServer) Execute

func (UnimplementedTestKubeCloudAPIServer) Send added in v1.7.21

type UnsafeTestKubeCloudAPIServer

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

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

type WebsocketData added in v1.7.21

type WebsocketData struct {
	Opcode Opcode `protobuf:"varint,1,opt,name=opcode,proto3,enum=cloud.Opcode" json:"opcode,omitempty"`
	Body   []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*WebsocketData) Descriptor deprecated added in v1.7.21

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

Deprecated: Use WebsocketData.ProtoReflect.Descriptor instead.

func (*WebsocketData) GetBody added in v1.7.21

func (x *WebsocketData) GetBody() []byte

func (*WebsocketData) GetOpcode added in v1.7.21

func (x *WebsocketData) GetOpcode() Opcode

func (*WebsocketData) ProtoMessage added in v1.7.21

func (*WebsocketData) ProtoMessage()

func (*WebsocketData) ProtoReflect added in v1.7.21

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

func (*WebsocketData) Reset added in v1.7.21

func (x *WebsocketData) Reset()

func (*WebsocketData) String added in v1.7.21

func (x *WebsocketData) String() string

Jump to

Keyboard shortcuts

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