instance_host

package
v0.0.0-...-e43450c Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_services_instance_host_instance_host_proto protoreflect.FileDescriptor
View Source
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.

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) PerformAction

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.

Jump to

Keyboard shortcuts

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