Documentation ¶
Index ¶
- Variables
- func RegisterInstanceManagementServiceServer(s grpc.ServiceRegistrar, srv InstanceManagementServiceServer)
- type AddInstanceReq
- func (*AddInstanceReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddInstanceReq) GetConfigContentB64() string
- func (x *AddInstanceReq) GetConfigType() string
- func (x *AddInstanceReq) GetName() string
- func (*AddInstanceReq) ProtoMessage()
- func (x *AddInstanceReq) ProtoReflect() protoreflect.Message
- func (x *AddInstanceReq) Reset()
- func (x *AddInstanceReq) String() string
- type AddInstanceResp
- type Config
- type InstanceManagementServiceClient
- type InstanceManagementServiceServer
- type ListInstanceReq
- type ListInstanceResp
- type StartInstanceReq
- type StartInstanceResp
- type UnimplementedInstanceManagementServiceServer
- func (UnimplementedInstanceManagementServiceServer) AddInstance(context.Context, *AddInstanceReq) (*AddInstanceResp, error)
- func (UnimplementedInstanceManagementServiceServer) ListInstance(context.Context, *ListInstanceReq) (*ListInstanceResp, error)
- func (UnimplementedInstanceManagementServiceServer) StartInstance(context.Context, *StartInstanceReq) (*StartInstanceResp, error)
- type UnsafeInstanceManagementServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_app_instman_command_command_proto protoreflect.FileDescriptor
var InstanceManagementService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v2ray.core.app.instman.command.InstanceManagementService", HandlerType: (*InstanceManagementServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListInstance", Handler: _InstanceManagementService_ListInstance_Handler, }, { MethodName: "AddInstance", Handler: _InstanceManagementService_AddInstance_Handler, }, { MethodName: "StartInstance", Handler: _InstanceManagementService_StartInstance_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "app/instman/command/command.proto", }
InstanceManagementService_ServiceDesc is the grpc.ServiceDesc for InstanceManagementService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterInstanceManagementServiceServer ¶
func RegisterInstanceManagementServiceServer(s grpc.ServiceRegistrar, srv InstanceManagementServiceServer)
Types ¶
type AddInstanceReq ¶
type AddInstanceReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` ConfigType string `protobuf:"bytes,2,opt,name=configType,proto3" json:"configType,omitempty"` ConfigContentB64 string `protobuf:"bytes,3,opt,name=configContentB64,proto3" json:"configContentB64,omitempty"` // contains filtered or unexported fields }
func (*AddInstanceReq) Descriptor
deprecated
func (*AddInstanceReq) Descriptor() ([]byte, []int)
Deprecated: Use AddInstanceReq.ProtoReflect.Descriptor instead.
func (*AddInstanceReq) GetConfigContentB64 ¶
func (x *AddInstanceReq) GetConfigContentB64() string
func (*AddInstanceReq) GetConfigType ¶
func (x *AddInstanceReq) GetConfigType() string
func (*AddInstanceReq) GetName ¶
func (x *AddInstanceReq) GetName() string
func (*AddInstanceReq) ProtoMessage ¶
func (*AddInstanceReq) ProtoMessage()
func (*AddInstanceReq) ProtoReflect ¶
func (x *AddInstanceReq) ProtoReflect() protoreflect.Message
func (*AddInstanceReq) Reset ¶
func (x *AddInstanceReq) Reset()
func (*AddInstanceReq) String ¶
func (x *AddInstanceReq) String() string
type AddInstanceResp ¶
type AddInstanceResp struct {
// contains filtered or unexported fields
}
func (*AddInstanceResp) Descriptor
deprecated
func (*AddInstanceResp) Descriptor() ([]byte, []int)
Deprecated: Use AddInstanceResp.ProtoReflect.Descriptor instead.
func (*AddInstanceResp) ProtoMessage ¶
func (*AddInstanceResp) ProtoMessage()
func (*AddInstanceResp) ProtoReflect ¶
func (x *AddInstanceResp) ProtoReflect() protoreflect.Message
func (*AddInstanceResp) Reset ¶
func (x *AddInstanceResp) Reset()
func (*AddInstanceResp) String ¶
func (x *AddInstanceResp) String() string
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) Descriptor
deprecated
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type InstanceManagementServiceClient ¶
type InstanceManagementServiceClient interface { ListInstance(ctx context.Context, in *ListInstanceReq, opts ...grpc.CallOption) (*ListInstanceResp, error) AddInstance(ctx context.Context, in *AddInstanceReq, opts ...grpc.CallOption) (*AddInstanceResp, error) StartInstance(ctx context.Context, in *StartInstanceReq, opts ...grpc.CallOption) (*StartInstanceResp, error) }
InstanceManagementServiceClient is the client API for InstanceManagementService 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 NewInstanceManagementServiceClient ¶
func NewInstanceManagementServiceClient(cc grpc.ClientConnInterface) InstanceManagementServiceClient
type InstanceManagementServiceServer ¶
type InstanceManagementServiceServer interface { ListInstance(context.Context, *ListInstanceReq) (*ListInstanceResp, error) AddInstance(context.Context, *AddInstanceReq) (*AddInstanceResp, error) StartInstance(context.Context, *StartInstanceReq) (*StartInstanceResp, error) // contains filtered or unexported methods }
InstanceManagementServiceServer is the server API for InstanceManagementService service. All implementations must embed UnimplementedInstanceManagementServiceServer for forward compatibility
type ListInstanceReq ¶
type ListInstanceReq struct {
// contains filtered or unexported fields
}
func (*ListInstanceReq) Descriptor
deprecated
func (*ListInstanceReq) Descriptor() ([]byte, []int)
Deprecated: Use ListInstanceReq.ProtoReflect.Descriptor instead.
func (*ListInstanceReq) ProtoMessage ¶
func (*ListInstanceReq) ProtoMessage()
func (*ListInstanceReq) ProtoReflect ¶
func (x *ListInstanceReq) ProtoReflect() protoreflect.Message
func (*ListInstanceReq) Reset ¶
func (x *ListInstanceReq) Reset()
func (*ListInstanceReq) String ¶
func (x *ListInstanceReq) String() string
type ListInstanceResp ¶
type ListInstanceResp struct { Name []string `protobuf:"bytes,1,rep,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*ListInstanceResp) Descriptor
deprecated
func (*ListInstanceResp) Descriptor() ([]byte, []int)
Deprecated: Use ListInstanceResp.ProtoReflect.Descriptor instead.
func (*ListInstanceResp) GetName ¶
func (x *ListInstanceResp) GetName() []string
func (*ListInstanceResp) ProtoMessage ¶
func (*ListInstanceResp) ProtoMessage()
func (*ListInstanceResp) ProtoReflect ¶
func (x *ListInstanceResp) ProtoReflect() protoreflect.Message
func (*ListInstanceResp) Reset ¶
func (x *ListInstanceResp) Reset()
func (*ListInstanceResp) String ¶
func (x *ListInstanceResp) String() string
type StartInstanceReq ¶
type StartInstanceReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*StartInstanceReq) Descriptor
deprecated
func (*StartInstanceReq) Descriptor() ([]byte, []int)
Deprecated: Use StartInstanceReq.ProtoReflect.Descriptor instead.
func (*StartInstanceReq) GetName ¶
func (x *StartInstanceReq) GetName() string
func (*StartInstanceReq) ProtoMessage ¶
func (*StartInstanceReq) ProtoMessage()
func (*StartInstanceReq) ProtoReflect ¶
func (x *StartInstanceReq) ProtoReflect() protoreflect.Message
func (*StartInstanceReq) Reset ¶
func (x *StartInstanceReq) Reset()
func (*StartInstanceReq) String ¶
func (x *StartInstanceReq) String() string
type StartInstanceResp ¶
type StartInstanceResp struct {
// contains filtered or unexported fields
}
func (*StartInstanceResp) Descriptor
deprecated
func (*StartInstanceResp) Descriptor() ([]byte, []int)
Deprecated: Use StartInstanceResp.ProtoReflect.Descriptor instead.
func (*StartInstanceResp) ProtoMessage ¶
func (*StartInstanceResp) ProtoMessage()
func (*StartInstanceResp) ProtoReflect ¶
func (x *StartInstanceResp) ProtoReflect() protoreflect.Message
func (*StartInstanceResp) Reset ¶
func (x *StartInstanceResp) Reset()
func (*StartInstanceResp) String ¶
func (x *StartInstanceResp) String() string
type UnimplementedInstanceManagementServiceServer ¶
type UnimplementedInstanceManagementServiceServer struct { }
UnimplementedInstanceManagementServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedInstanceManagementServiceServer) AddInstance ¶
func (UnimplementedInstanceManagementServiceServer) AddInstance(context.Context, *AddInstanceReq) (*AddInstanceResp, error)
func (UnimplementedInstanceManagementServiceServer) ListInstance ¶
func (UnimplementedInstanceManagementServiceServer) ListInstance(context.Context, *ListInstanceReq) (*ListInstanceResp, error)
func (UnimplementedInstanceManagementServiceServer) StartInstance ¶
func (UnimplementedInstanceManagementServiceServer) StartInstance(context.Context, *StartInstanceReq) (*StartInstanceResp, error)
type UnsafeInstanceManagementServiceServer ¶
type UnsafeInstanceManagementServiceServer interface {
// contains filtered or unexported methods
}
UnsafeInstanceManagementServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InstanceManagementServiceServer will result in compilation errors.