Documentation ¶
Index ¶
- Variables
- func RegisterInstanceHostServiceServer(s grpc.ServiceRegistrar, srv InstanceHostServiceServer)
- type CreateInstanceRequest
- func (*CreateInstanceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateInstanceRequest) GetInstanceType() string
- func (x *CreateInstanceRequest) GetUserIds() []string
- func (*CreateInstanceRequest) ProtoMessage()
- func (x *CreateInstanceRequest) ProtoReflect() protoreflect.Message
- func (x *CreateInstanceRequest) Reset()
- func (x *CreateInstanceRequest) String() string
- type CreateInstanceResponse
- func (*CreateInstanceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateInstanceResponse) GetInstanceId() string
- func (x *CreateInstanceResponse) GetMarkup() map[string]string
- func (*CreateInstanceResponse) ProtoMessage()
- func (x *CreateInstanceResponse) ProtoReflect() protoreflect.Message
- func (x *CreateInstanceResponse) Reset()
- func (x *CreateInstanceResponse) String() string
- type InstanceHostServiceClient
- type InstanceHostServiceServer
- type PerformActionRequest
- func (*PerformActionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PerformActionRequest) GetAction() string
- func (x *PerformActionRequest) GetInstanceId() string
- func (x *PerformActionRequest) GetUserId() string
- func (*PerformActionRequest) ProtoMessage()
- func (x *PerformActionRequest) ProtoReflect() protoreflect.Message
- func (x *PerformActionRequest) Reset()
- func (x *PerformActionRequest) String() string
- type PerformActionResponse
- func (*PerformActionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PerformActionResponse) GetMarkup() map[string]string
- func (*PerformActionResponse) ProtoMessage()
- func (x *PerformActionResponse) ProtoReflect() protoreflect.Message
- func (x *PerformActionResponse) Reset()
- func (x *PerformActionResponse) String() string
- type UnimplementedInstanceHostServiceServer
- type UnsafeInstanceHostServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_services_instance_host_instance_host_proto protoreflect.FileDescriptor
var InstanceHostService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "spielbrett.services.instance_host.InstanceHostService", HandlerType: (*InstanceHostServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateInstance", Handler: _InstanceHostService_CreateInstance_Handler, }, { MethodName: "PerformAction", Handler: _InstanceHostService_PerformAction_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/services/instance_host/instance_host.proto", }
InstanceHostService_ServiceDesc is the grpc.ServiceDesc for InstanceHostService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterInstanceHostServiceServer ¶
func RegisterInstanceHostServiceServer(s grpc.ServiceRegistrar, srv InstanceHostServiceServer)
Types ¶
type CreateInstanceRequest ¶
type CreateInstanceRequest struct { InstanceType string `protobuf:"bytes,1,opt,name=instance_type,json=instanceType,proto3" json:"instance_type,omitempty"` UserIds []string `protobuf:"bytes,2,rep,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"` // contains filtered or unexported fields }
func (*CreateInstanceRequest) Descriptor
deprecated
func (*CreateInstanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateInstanceRequest.ProtoReflect.Descriptor instead.
func (*CreateInstanceRequest) GetInstanceType ¶
func (x *CreateInstanceRequest) GetInstanceType() string
func (*CreateInstanceRequest) GetUserIds ¶
func (x *CreateInstanceRequest) GetUserIds() []string
func (*CreateInstanceRequest) ProtoMessage ¶
func (*CreateInstanceRequest) ProtoMessage()
func (*CreateInstanceRequest) ProtoReflect ¶
func (x *CreateInstanceRequest) ProtoReflect() protoreflect.Message
func (*CreateInstanceRequest) Reset ¶
func (x *CreateInstanceRequest) Reset()
func (*CreateInstanceRequest) String ¶
func (x *CreateInstanceRequest) String() string
type CreateInstanceResponse ¶
type CreateInstanceResponse struct { InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` Markup map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CreateInstanceResponse) Descriptor
deprecated
func (*CreateInstanceResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateInstanceResponse.ProtoReflect.Descriptor instead.
func (*CreateInstanceResponse) GetInstanceId ¶
func (x *CreateInstanceResponse) GetInstanceId() string
func (*CreateInstanceResponse) GetMarkup ¶
func (x *CreateInstanceResponse) GetMarkup() map[string]string
func (*CreateInstanceResponse) ProtoMessage ¶
func (*CreateInstanceResponse) ProtoMessage()
func (*CreateInstanceResponse) ProtoReflect ¶
func (x *CreateInstanceResponse) ProtoReflect() protoreflect.Message
func (*CreateInstanceResponse) Reset ¶
func (x *CreateInstanceResponse) Reset()
func (*CreateInstanceResponse) String ¶
func (x *CreateInstanceResponse) String() string
type InstanceHostServiceClient ¶
type InstanceHostServiceClient interface { CreateInstance(ctx context.Context, in *CreateInstanceRequest, opts ...grpc.CallOption) (*CreateInstanceResponse, error) PerformAction(ctx context.Context, in *PerformActionRequest, opts ...grpc.CallOption) (*PerformActionResponse, error) }
InstanceHostServiceClient is the client API for InstanceHostService 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 NewInstanceHostServiceClient ¶
func NewInstanceHostServiceClient(cc grpc.ClientConnInterface) InstanceHostServiceClient
type InstanceHostServiceServer ¶
type InstanceHostServiceServer interface { CreateInstance(context.Context, *CreateInstanceRequest) (*CreateInstanceResponse, error) PerformAction(context.Context, *PerformActionRequest) (*PerformActionResponse, error) // contains filtered or unexported methods }
InstanceHostServiceServer is the server API for InstanceHostService service. All implementations must embed UnimplementedInstanceHostServiceServer for forward compatibility
type PerformActionRequest ¶
type PerformActionRequest struct { InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"` // contains filtered or unexported fields }
func (*PerformActionRequest) Descriptor
deprecated
func (*PerformActionRequest) Descriptor() ([]byte, []int)
Deprecated: Use PerformActionRequest.ProtoReflect.Descriptor instead.
func (*PerformActionRequest) GetAction ¶
func (x *PerformActionRequest) GetAction() string
func (*PerformActionRequest) GetInstanceId ¶
func (x *PerformActionRequest) GetInstanceId() string
func (*PerformActionRequest) GetUserId ¶
func (x *PerformActionRequest) GetUserId() string
func (*PerformActionRequest) ProtoMessage ¶
func (*PerformActionRequest) ProtoMessage()
func (*PerformActionRequest) ProtoReflect ¶
func (x *PerformActionRequest) ProtoReflect() protoreflect.Message
func (*PerformActionRequest) Reset ¶
func (x *PerformActionRequest) Reset()
func (*PerformActionRequest) String ¶
func (x *PerformActionRequest) String() string
type PerformActionResponse ¶
type PerformActionResponse struct { Markup map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*PerformActionResponse) Descriptor
deprecated
func (*PerformActionResponse) Descriptor() ([]byte, []int)
Deprecated: Use PerformActionResponse.ProtoReflect.Descriptor instead.
func (*PerformActionResponse) GetMarkup ¶
func (x *PerformActionResponse) GetMarkup() map[string]string
func (*PerformActionResponse) ProtoMessage ¶
func (*PerformActionResponse) ProtoMessage()
func (*PerformActionResponse) ProtoReflect ¶
func (x *PerformActionResponse) ProtoReflect() protoreflect.Message
func (*PerformActionResponse) Reset ¶
func (x *PerformActionResponse) Reset()
func (*PerformActionResponse) String ¶
func (x *PerformActionResponse) String() string
type UnimplementedInstanceHostServiceServer ¶
type UnimplementedInstanceHostServiceServer struct { }
UnimplementedInstanceHostServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedInstanceHostServiceServer) CreateInstance ¶
func (UnimplementedInstanceHostServiceServer) CreateInstance(context.Context, *CreateInstanceRequest) (*CreateInstanceResponse, error)
func (UnimplementedInstanceHostServiceServer) PerformAction ¶
func (UnimplementedInstanceHostServiceServer) PerformAction(context.Context, *PerformActionRequest) (*PerformActionResponse, error)
type UnsafeInstanceHostServiceServer ¶
type UnsafeInstanceHostServiceServer interface {
// contains filtered or unexported methods
}
UnsafeInstanceHostServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InstanceHostServiceServer will result in compilation errors.