Documentation ¶
Index ¶
- Variables
- func RegisterContainerServer(s *grpc.Server, srv ContainerServer)
- type ContainerClient
- type ContainerServer
- type InvokeRequest
- func (*InvokeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InvokeRequest) GetFuncName() string
- func (x *InvokeRequest) GetPayload() []byte
- func (*InvokeRequest) ProtoMessage()
- func (x *InvokeRequest) ProtoReflect() protoreflect.Message
- func (x *InvokeRequest) Reset()
- func (x *InvokeRequest) String() string
- type InvokeResponse
- func (*InvokeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InvokeResponse) GetCode() InvokeResponse_Code
- func (x *InvokeResponse) GetOutput() []byte
- func (*InvokeResponse) ProtoMessage()
- func (x *InvokeResponse) ProtoReflect() protoreflect.Message
- func (x *InvokeResponse) Reset()
- func (x *InvokeResponse) String() string
- type InvokeResponse_Code
- func (InvokeResponse_Code) Descriptor() protoreflect.EnumDescriptor
- func (x InvokeResponse_Code) Enum() *InvokeResponse_Code
- func (InvokeResponse_Code) EnumDescriptor() ([]byte, []int)deprecated
- func (x InvokeResponse_Code) Number() protoreflect.EnumNumber
- func (x InvokeResponse_Code) String() string
- func (InvokeResponse_Code) Type() protoreflect.EnumType
- type LoadCodeRequest
- func (*LoadCodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoadCodeRequest) GetFuncName() string
- func (x *LoadCodeRequest) GetUrl() string
- func (*LoadCodeRequest) ProtoMessage()
- func (x *LoadCodeRequest) ProtoReflect() protoreflect.Message
- func (x *LoadCodeRequest) Reset()
- func (x *LoadCodeRequest) String() string
- type LoadCodeResponse
- func (*LoadCodeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoadCodeResponse) GetCode() LoadCodeResponse_Code
- func (*LoadCodeResponse) ProtoMessage()
- func (x *LoadCodeResponse) ProtoReflect() protoreflect.Message
- func (x *LoadCodeResponse) Reset()
- func (x *LoadCodeResponse) String() string
- type LoadCodeResponse_Code
- func (LoadCodeResponse_Code) Descriptor() protoreflect.EnumDescriptor
- func (x LoadCodeResponse_Code) Enum() *LoadCodeResponse_Code
- func (LoadCodeResponse_Code) EnumDescriptor() ([]byte, []int)deprecated
- func (x LoadCodeResponse_Code) Number() protoreflect.EnumNumber
- func (x LoadCodeResponse_Code) String() string
- func (LoadCodeResponse_Code) Type() protoreflect.EnumType
- type SetEnvsRequest
- type SetEnvsResponse
- type SetEnvsResponse_Code
- func (SetEnvsResponse_Code) Descriptor() protoreflect.EnumDescriptor
- func (x SetEnvsResponse_Code) Enum() *SetEnvsResponse_Code
- func (SetEnvsResponse_Code) EnumDescriptor() ([]byte, []int)deprecated
- func (x SetEnvsResponse_Code) Number() protoreflect.EnumNumber
- func (x SetEnvsResponse_Code) String() string
- func (SetEnvsResponse_Code) Type() protoreflect.EnumType
- type StopRequest
- type StopResponse
- type StopResponse_Code
- func (StopResponse_Code) Descriptor() protoreflect.EnumDescriptor
- func (x StopResponse_Code) Enum() *StopResponse_Code
- func (StopResponse_Code) EnumDescriptor() ([]byte, []int)deprecated
- func (x StopResponse_Code) Number() protoreflect.EnumNumber
- func (x StopResponse_Code) String() string
- func (StopResponse_Code) Type() protoreflect.EnumType
- type UnimplementedContainerServer
- func (*UnimplementedContainerServer) Invoke(context.Context, *InvokeRequest) (*InvokeResponse, error)
- func (*UnimplementedContainerServer) LoadCode(context.Context, *LoadCodeRequest) (*LoadCodeResponse, error)
- func (*UnimplementedContainerServer) SetEnvs(context.Context, *SetEnvsRequest) (*SetEnvsResponse, error)
- func (*UnimplementedContainerServer) Stop(context.Context, *StopRequest) (*StopResponse, error)
Constants ¶
This section is empty.
Variables ¶
var ( InvokeResponse_Code_name = map[int32]string{ 0: "OK", 1: "NOT_READY", 2: "FUNC_MISMATCH", 3: "RUNTIME_ERROR", } InvokeResponse_Code_value = map[string]int32{ "OK": 0, "NOT_READY": 1, "FUNC_MISMATCH": 2, "RUNTIME_ERROR": 3, } )
Enum value maps for InvokeResponse_Code.
var ( SetEnvsResponse_Code_name = map[int32]string{ 0: "OK", 1: "INVALID_ENV", } SetEnvsResponse_Code_value = map[string]int32{ "OK": 0, "INVALID_ENV": 1, } )
Enum value maps for SetEnvsResponse_Code.
var ( LoadCodeResponse_Code_name = map[int32]string{ 0: "OK", 1: "ERROR", } LoadCodeResponse_Code_value = map[string]int32{ "OK": 0, "ERROR": 1, } )
Enum value maps for LoadCodeResponse_Code.
var ( StopResponse_Code_name = map[int32]string{ 0: "OK", } StopResponse_Code_value = map[string]int32{ "OK": 0, } )
Enum value maps for StopResponse_Code.
var File_container_container_proto protoreflect.FileDescriptor
Functions ¶
func RegisterContainerServer ¶
func RegisterContainerServer(s *grpc.Server, srv ContainerServer)
Types ¶
type ContainerClient ¶
type ContainerClient interface { Invoke(ctx context.Context, in *InvokeRequest, opts ...grpc.CallOption) (*InvokeResponse, error) SetEnvs(ctx context.Context, in *SetEnvsRequest, opts ...grpc.CallOption) (*SetEnvsResponse, error) LoadCode(ctx context.Context, in *LoadCodeRequest, opts ...grpc.CallOption) (*LoadCodeResponse, error) Stop(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (*StopResponse, error) }
ContainerClient is the client API for Container service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewContainerClient ¶
func NewContainerClient(cc grpc.ClientConnInterface) ContainerClient
type ContainerServer ¶
type ContainerServer interface { Invoke(context.Context, *InvokeRequest) (*InvokeResponse, error) SetEnvs(context.Context, *SetEnvsRequest) (*SetEnvsResponse, error) LoadCode(context.Context, *LoadCodeRequest) (*LoadCodeResponse, error) Stop(context.Context, *StopRequest) (*StopResponse, error) }
ContainerServer is the server API for Container service.
type InvokeRequest ¶
type InvokeRequest struct { FuncName string `protobuf:"bytes,1,opt,name=funcName,proto3" json:"funcName,omitempty"` Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
func (*InvokeRequest) Descriptor
deprecated
func (*InvokeRequest) Descriptor() ([]byte, []int)
Deprecated: Use InvokeRequest.ProtoReflect.Descriptor instead.
func (*InvokeRequest) GetFuncName ¶
func (x *InvokeRequest) GetFuncName() string
func (*InvokeRequest) GetPayload ¶
func (x *InvokeRequest) GetPayload() []byte
func (*InvokeRequest) ProtoMessage ¶
func (*InvokeRequest) ProtoMessage()
func (*InvokeRequest) ProtoReflect ¶
func (x *InvokeRequest) ProtoReflect() protoreflect.Message
func (*InvokeRequest) Reset ¶
func (x *InvokeRequest) Reset()
func (*InvokeRequest) String ¶
func (x *InvokeRequest) String() string
type InvokeResponse ¶
type InvokeResponse struct { Code InvokeResponse_Code `protobuf:"varint,1,opt,name=code,proto3,enum=container.InvokeResponse_Code" json:"code,omitempty"` Output []byte `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"` // contains filtered or unexported fields }
func (*InvokeResponse) Descriptor
deprecated
func (*InvokeResponse) Descriptor() ([]byte, []int)
Deprecated: Use InvokeResponse.ProtoReflect.Descriptor instead.
func (*InvokeResponse) GetCode ¶
func (x *InvokeResponse) GetCode() InvokeResponse_Code
func (*InvokeResponse) GetOutput ¶
func (x *InvokeResponse) GetOutput() []byte
func (*InvokeResponse) ProtoMessage ¶
func (*InvokeResponse) ProtoMessage()
func (*InvokeResponse) ProtoReflect ¶
func (x *InvokeResponse) ProtoReflect() protoreflect.Message
func (*InvokeResponse) Reset ¶
func (x *InvokeResponse) Reset()
func (*InvokeResponse) String ¶
func (x *InvokeResponse) String() string
type InvokeResponse_Code ¶
type InvokeResponse_Code int32
const ( InvokeResponse_OK InvokeResponse_Code = 0 InvokeResponse_NOT_READY InvokeResponse_Code = 1 InvokeResponse_FUNC_MISMATCH InvokeResponse_Code = 2 InvokeResponse_RUNTIME_ERROR InvokeResponse_Code = 3 )
func (InvokeResponse_Code) Descriptor ¶
func (InvokeResponse_Code) Descriptor() protoreflect.EnumDescriptor
func (InvokeResponse_Code) Enum ¶
func (x InvokeResponse_Code) Enum() *InvokeResponse_Code
func (InvokeResponse_Code) EnumDescriptor
deprecated
func (InvokeResponse_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use InvokeResponse_Code.Descriptor instead.
func (InvokeResponse_Code) Number ¶
func (x InvokeResponse_Code) Number() protoreflect.EnumNumber
func (InvokeResponse_Code) String ¶
func (x InvokeResponse_Code) String() string
func (InvokeResponse_Code) Type ¶
func (InvokeResponse_Code) Type() protoreflect.EnumType
type LoadCodeRequest ¶
type LoadCodeRequest struct { FuncName string `protobuf:"bytes,1,opt,name=funcName,proto3" json:"funcName,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*LoadCodeRequest) Descriptor
deprecated
func (*LoadCodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoadCodeRequest.ProtoReflect.Descriptor instead.
func (*LoadCodeRequest) GetFuncName ¶
func (x *LoadCodeRequest) GetFuncName() string
func (*LoadCodeRequest) GetUrl ¶
func (x *LoadCodeRequest) GetUrl() string
func (*LoadCodeRequest) ProtoMessage ¶
func (*LoadCodeRequest) ProtoMessage()
func (*LoadCodeRequest) ProtoReflect ¶
func (x *LoadCodeRequest) ProtoReflect() protoreflect.Message
func (*LoadCodeRequest) Reset ¶
func (x *LoadCodeRequest) Reset()
func (*LoadCodeRequest) String ¶
func (x *LoadCodeRequest) String() string
type LoadCodeResponse ¶
type LoadCodeResponse struct { Code LoadCodeResponse_Code `protobuf:"varint,1,opt,name=code,proto3,enum=container.LoadCodeResponse_Code" json:"code,omitempty"` // contains filtered or unexported fields }
func (*LoadCodeResponse) Descriptor
deprecated
func (*LoadCodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoadCodeResponse.ProtoReflect.Descriptor instead.
func (*LoadCodeResponse) GetCode ¶
func (x *LoadCodeResponse) GetCode() LoadCodeResponse_Code
func (*LoadCodeResponse) ProtoMessage ¶
func (*LoadCodeResponse) ProtoMessage()
func (*LoadCodeResponse) ProtoReflect ¶
func (x *LoadCodeResponse) ProtoReflect() protoreflect.Message
func (*LoadCodeResponse) Reset ¶
func (x *LoadCodeResponse) Reset()
func (*LoadCodeResponse) String ¶
func (x *LoadCodeResponse) String() string
type LoadCodeResponse_Code ¶
type LoadCodeResponse_Code int32
const ( LoadCodeResponse_OK LoadCodeResponse_Code = 0 LoadCodeResponse_ERROR LoadCodeResponse_Code = 1 )
func (LoadCodeResponse_Code) Descriptor ¶
func (LoadCodeResponse_Code) Descriptor() protoreflect.EnumDescriptor
func (LoadCodeResponse_Code) Enum ¶
func (x LoadCodeResponse_Code) Enum() *LoadCodeResponse_Code
func (LoadCodeResponse_Code) EnumDescriptor
deprecated
func (LoadCodeResponse_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use LoadCodeResponse_Code.Descriptor instead.
func (LoadCodeResponse_Code) Number ¶
func (x LoadCodeResponse_Code) Number() protoreflect.EnumNumber
func (LoadCodeResponse_Code) String ¶
func (x LoadCodeResponse_Code) String() string
func (LoadCodeResponse_Code) Type ¶
func (LoadCodeResponse_Code) Type() protoreflect.EnumType
type SetEnvsRequest ¶
type SetEnvsRequest struct { Env []string `protobuf:"bytes,1,rep,name=env,proto3" json:"env,omitempty"` // contains filtered or unexported fields }
func (*SetEnvsRequest) Descriptor
deprecated
func (*SetEnvsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetEnvsRequest.ProtoReflect.Descriptor instead.
func (*SetEnvsRequest) GetEnv ¶
func (x *SetEnvsRequest) GetEnv() []string
func (*SetEnvsRequest) ProtoMessage ¶
func (*SetEnvsRequest) ProtoMessage()
func (*SetEnvsRequest) ProtoReflect ¶
func (x *SetEnvsRequest) ProtoReflect() protoreflect.Message
func (*SetEnvsRequest) Reset ¶
func (x *SetEnvsRequest) Reset()
func (*SetEnvsRequest) String ¶
func (x *SetEnvsRequest) String() string
type SetEnvsResponse ¶
type SetEnvsResponse struct { Code SetEnvsResponse_Code `protobuf:"varint,1,opt,name=code,proto3,enum=container.SetEnvsResponse_Code" json:"code,omitempty"` // contains filtered or unexported fields }
func (*SetEnvsResponse) Descriptor
deprecated
func (*SetEnvsResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetEnvsResponse.ProtoReflect.Descriptor instead.
func (*SetEnvsResponse) GetCode ¶
func (x *SetEnvsResponse) GetCode() SetEnvsResponse_Code
func (*SetEnvsResponse) ProtoMessage ¶
func (*SetEnvsResponse) ProtoMessage()
func (*SetEnvsResponse) ProtoReflect ¶
func (x *SetEnvsResponse) ProtoReflect() protoreflect.Message
func (*SetEnvsResponse) Reset ¶
func (x *SetEnvsResponse) Reset()
func (*SetEnvsResponse) String ¶
func (x *SetEnvsResponse) String() string
type SetEnvsResponse_Code ¶
type SetEnvsResponse_Code int32
const ( SetEnvsResponse_OK SetEnvsResponse_Code = 0 SetEnvsResponse_INVALID_ENV SetEnvsResponse_Code = 1 )
func (SetEnvsResponse_Code) Descriptor ¶
func (SetEnvsResponse_Code) Descriptor() protoreflect.EnumDescriptor
func (SetEnvsResponse_Code) Enum ¶
func (x SetEnvsResponse_Code) Enum() *SetEnvsResponse_Code
func (SetEnvsResponse_Code) EnumDescriptor
deprecated
func (SetEnvsResponse_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use SetEnvsResponse_Code.Descriptor instead.
func (SetEnvsResponse_Code) Number ¶
func (x SetEnvsResponse_Code) Number() protoreflect.EnumNumber
func (SetEnvsResponse_Code) String ¶
func (x SetEnvsResponse_Code) String() string
func (SetEnvsResponse_Code) Type ¶
func (SetEnvsResponse_Code) Type() protoreflect.EnumType
type StopRequest ¶
type StopRequest struct {
// contains filtered or unexported fields
}
func (*StopRequest) Descriptor
deprecated
func (*StopRequest) Descriptor() ([]byte, []int)
Deprecated: Use StopRequest.ProtoReflect.Descriptor instead.
func (*StopRequest) ProtoMessage ¶
func (*StopRequest) ProtoMessage()
func (*StopRequest) ProtoReflect ¶
func (x *StopRequest) ProtoReflect() protoreflect.Message
func (*StopRequest) Reset ¶
func (x *StopRequest) Reset()
func (*StopRequest) String ¶
func (x *StopRequest) String() string
type StopResponse ¶
type StopResponse struct { Code StopResponse_Code `protobuf:"varint,1,opt,name=code,proto3,enum=container.StopResponse_Code" json:"code,omitempty"` // contains filtered or unexported fields }
func (*StopResponse) Descriptor
deprecated
func (*StopResponse) Descriptor() ([]byte, []int)
Deprecated: Use StopResponse.ProtoReflect.Descriptor instead.
func (*StopResponse) GetCode ¶
func (x *StopResponse) GetCode() StopResponse_Code
func (*StopResponse) ProtoMessage ¶
func (*StopResponse) ProtoMessage()
func (*StopResponse) ProtoReflect ¶
func (x *StopResponse) ProtoReflect() protoreflect.Message
func (*StopResponse) Reset ¶
func (x *StopResponse) Reset()
func (*StopResponse) String ¶
func (x *StopResponse) String() string
type StopResponse_Code ¶
type StopResponse_Code int32
const (
StopResponse_OK StopResponse_Code = 0
)
func (StopResponse_Code) Descriptor ¶
func (StopResponse_Code) Descriptor() protoreflect.EnumDescriptor
func (StopResponse_Code) Enum ¶
func (x StopResponse_Code) Enum() *StopResponse_Code
func (StopResponse_Code) EnumDescriptor
deprecated
func (StopResponse_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use StopResponse_Code.Descriptor instead.
func (StopResponse_Code) Number ¶
func (x StopResponse_Code) Number() protoreflect.EnumNumber
func (StopResponse_Code) String ¶
func (x StopResponse_Code) String() string
func (StopResponse_Code) Type ¶
func (StopResponse_Code) Type() protoreflect.EnumType
type UnimplementedContainerServer ¶
type UnimplementedContainerServer struct { }
UnimplementedContainerServer can be embedded to have forward compatible implementations.
func (*UnimplementedContainerServer) Invoke ¶
func (*UnimplementedContainerServer) Invoke(context.Context, *InvokeRequest) (*InvokeResponse, error)
func (*UnimplementedContainerServer) LoadCode ¶
func (*UnimplementedContainerServer) LoadCode(context.Context, *LoadCodeRequest) (*LoadCodeResponse, error)
func (*UnimplementedContainerServer) SetEnvs ¶
func (*UnimplementedContainerServer) SetEnvs(context.Context, *SetEnvsRequest) (*SetEnvsResponse, error)
func (*UnimplementedContainerServer) Stop ¶
func (*UnimplementedContainerServer) Stop(context.Context, *StopRequest) (*StopResponse, error)