group

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_dcs_group_v0_group_proto protoreflect.FileDescriptor
View Source
var GroupService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "dcs.group.v0.GroupService",
	HandlerType: (*GroupServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetUnits",
			Handler:    _GroupService_GetUnits_Handler,
		},
		{
			MethodName: "Activate",
			Handler:    _GroupService_Activate_Handler,
		},
		{
			MethodName: "Destroy",
			Handler:    _GroupService_Destroy_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "dcs/group/v0/group.proto",
}

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

Functions

func RegisterGroupServiceServer

func RegisterGroupServiceServer(s grpc.ServiceRegistrar, srv GroupServiceServer)

Types

type ActivateRequest

type ActivateRequest struct {
	GroupName string `protobuf:"bytes,1,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
	// contains filtered or unexported fields
}

func (*ActivateRequest) Descriptor deprecated

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

Deprecated: Use ActivateRequest.ProtoReflect.Descriptor instead.

func (*ActivateRequest) GetGroupName

func (x *ActivateRequest) GetGroupName() string

func (*ActivateRequest) ProtoMessage

func (*ActivateRequest) ProtoMessage()

func (*ActivateRequest) ProtoReflect

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

func (*ActivateRequest) Reset

func (x *ActivateRequest) Reset()

func (*ActivateRequest) String

func (x *ActivateRequest) String() string

type ActivateResponse

type ActivateResponse struct {
	// contains filtered or unexported fields
}

func (*ActivateResponse) Descriptor deprecated

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

Deprecated: Use ActivateResponse.ProtoReflect.Descriptor instead.

func (*ActivateResponse) ProtoMessage

func (*ActivateResponse) ProtoMessage()

func (*ActivateResponse) ProtoReflect

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

func (*ActivateResponse) Reset

func (x *ActivateResponse) Reset()

func (*ActivateResponse) String

func (x *ActivateResponse) String() string

type DestroyRequest

type DestroyRequest struct {
	GroupName string `protobuf:"bytes,1,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
	// contains filtered or unexported fields
}

func (*DestroyRequest) Descriptor deprecated

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

Deprecated: Use DestroyRequest.ProtoReflect.Descriptor instead.

func (*DestroyRequest) GetGroupName

func (x *DestroyRequest) GetGroupName() string

func (*DestroyRequest) ProtoMessage

func (*DestroyRequest) ProtoMessage()

func (*DestroyRequest) ProtoReflect

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

func (*DestroyRequest) Reset

func (x *DestroyRequest) Reset()

func (*DestroyRequest) String

func (x *DestroyRequest) String() string

type DestroyResponse

type DestroyResponse struct {
	// contains filtered or unexported fields
}

func (*DestroyResponse) Descriptor deprecated

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

Deprecated: Use DestroyResponse.ProtoReflect.Descriptor instead.

func (*DestroyResponse) ProtoMessage

func (*DestroyResponse) ProtoMessage()

func (*DestroyResponse) ProtoReflect

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

func (*DestroyResponse) Reset

func (x *DestroyResponse) Reset()

func (*DestroyResponse) String

func (x *DestroyResponse) String() string

type GetUnitsRequest

type GetUnitsRequest struct {
	GroupName string `protobuf:"bytes,1,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
	// Whether the response should include only active units (`true`), only
	// inactive units (`false`), or all units (`nil`).
	Active *bool `protobuf:"varint,2,opt,name=active,proto3,oneof" json:"active,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUnitsRequest) Descriptor deprecated

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

Deprecated: Use GetUnitsRequest.ProtoReflect.Descriptor instead.

func (*GetUnitsRequest) GetActive

func (x *GetUnitsRequest) GetActive() bool

func (*GetUnitsRequest) GetGroupName

func (x *GetUnitsRequest) GetGroupName() string

func (*GetUnitsRequest) ProtoMessage

func (*GetUnitsRequest) ProtoMessage()

func (*GetUnitsRequest) ProtoReflect

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

func (*GetUnitsRequest) Reset

func (x *GetUnitsRequest) Reset()

func (*GetUnitsRequest) String

func (x *GetUnitsRequest) String() string

type GetUnitsResponse

type GetUnitsResponse struct {
	Units []*common.Unit `protobuf:"bytes,1,rep,name=units,proto3" json:"units,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUnitsResponse) Descriptor deprecated

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

Deprecated: Use GetUnitsResponse.ProtoReflect.Descriptor instead.

func (*GetUnitsResponse) GetUnits

func (x *GetUnitsResponse) GetUnits() []*common.Unit

func (*GetUnitsResponse) ProtoMessage

func (*GetUnitsResponse) ProtoMessage()

func (*GetUnitsResponse) ProtoReflect

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

func (*GetUnitsResponse) Reset

func (x *GetUnitsResponse) Reset()

func (*GetUnitsResponse) String

func (x *GetUnitsResponse) String() string

type GroupServiceClient

GroupServiceClient is the client API for GroupService 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 GroupServiceServer

GroupServiceServer is the server API for GroupService service. All implementations must embed UnimplementedGroupServiceServer for forward compatibility

type UnimplementedGroupServiceServer

type UnimplementedGroupServiceServer struct {
}

UnimplementedGroupServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedGroupServiceServer) Activate

func (UnimplementedGroupServiceServer) Destroy

func (UnimplementedGroupServiceServer) GetUnits

type UnsafeGroupServiceServer

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

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

Jump to

Keyboard shortcuts

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