Documentation ¶
Index ¶
- Variables
- func RegisterHostGroupServiceServer(s grpc.ServiceRegistrar, srv HostGroupServiceServer)
- type DeleteRequest
- type DeleteResponse
- type GetAllRequest
- type GetAllResponse
- type GetByIDRequest
- type GetByIDResponse
- type HostGroup
- func (*HostGroup) Descriptor() ([]byte, []int)deprecated
- func (x *HostGroup) GetHide() *wrapperspb.BoolValue
- func (x *HostGroup) GetHosts() *v11.Host
- func (x *HostGroup) GetId() *v1.UUID
- func (x *HostGroup) GetName() string
- func (x *HostGroup) GetPause() *wrapperspb.BoolValue
- func (*HostGroup) ProtoMessage()
- func (x *HostGroup) ProtoReflect() protoreflect.Message
- func (x *HostGroup) Reset()
- func (x *HostGroup) String() string
- type HostGroupServiceClient
- type HostGroupServiceServer
- type StoreRequest
- type StoreResponse
- type UnimplementedHostGroupServiceServer
- func (UnimplementedHostGroupServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
- func (UnimplementedHostGroupServiceServer) GetAll(context.Context, *GetAllRequest) (*GetAllResponse, error)
- func (UnimplementedHostGroupServiceServer) GetByID(context.Context, *GetByIDRequest) (*GetByIDResponse, error)
- func (UnimplementedHostGroupServiceServer) Store(context.Context, *StoreRequest) (*StoreResponse, error)
- func (UnimplementedHostGroupServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
- type UnsafeHostGroupServiceServer
- type UpdateRequest
- type UpdateResponse
Constants ¶
This section is empty.
Variables ¶
var File_pkg_proto_host_group_v1_host_group_proto protoreflect.FileDescriptor
var HostGroupService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pkg.proto.host_group.v1.HostGroupService", HandlerType: (*HostGroupServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAll", Handler: _HostGroupService_GetAll_Handler, }, { MethodName: "GetByID", Handler: _HostGroupService_GetByID_Handler, }, { MethodName: "Delete", Handler: _HostGroupService_Delete_Handler, }, { MethodName: "Store", Handler: _HostGroupService_Store_Handler, }, { MethodName: "Update", Handler: _HostGroupService_Update_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/proto/host_group/v1/host_group.proto", }
HostGroupService_ServiceDesc is the grpc.ServiceDesc for HostGroupService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHostGroupServiceServer ¶
func RegisterHostGroupServiceServer(s grpc.ServiceRegistrar, srv HostGroupServiceServer)
Types ¶
type DeleteRequest ¶
type DeleteRequest struct { Id *v1.UUID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetId ¶
func (x *DeleteRequest) GetId() *v1.UUID
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
type DeleteResponse ¶
type DeleteResponse struct {
// contains filtered or unexported fields
}
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
type GetAllRequest ¶
type GetAllRequest struct {
// contains filtered or unexported fields
}
func (*GetAllRequest) Descriptor
deprecated
func (*GetAllRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAllRequest.ProtoReflect.Descriptor instead.
func (*GetAllRequest) ProtoMessage ¶
func (*GetAllRequest) ProtoMessage()
func (*GetAllRequest) ProtoReflect ¶
func (x *GetAllRequest) ProtoReflect() protoreflect.Message
func (*GetAllRequest) Reset ¶
func (x *GetAllRequest) Reset()
func (*GetAllRequest) String ¶
func (x *GetAllRequest) String() string
type GetAllResponse ¶
type GetAllResponse struct { HostGroups []*HostGroup `protobuf:"bytes,1,rep,name=host_groups,json=hostGroups,proto3" json:"host_groups,omitempty"` // contains filtered or unexported fields }
func (*GetAllResponse) Descriptor
deprecated
func (*GetAllResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAllResponse.ProtoReflect.Descriptor instead.
func (*GetAllResponse) GetHostGroups ¶
func (x *GetAllResponse) GetHostGroups() []*HostGroup
func (*GetAllResponse) ProtoMessage ¶
func (*GetAllResponse) ProtoMessage()
func (*GetAllResponse) ProtoReflect ¶
func (x *GetAllResponse) ProtoReflect() protoreflect.Message
func (*GetAllResponse) Reset ¶
func (x *GetAllResponse) Reset()
func (*GetAllResponse) String ¶
func (x *GetAllResponse) String() string
type GetByIDRequest ¶
type GetByIDRequest struct { Id *v1.UUID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetByIDRequest) Descriptor
deprecated
func (*GetByIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetByIDRequest.ProtoReflect.Descriptor instead.
func (*GetByIDRequest) GetId ¶
func (x *GetByIDRequest) GetId() *v1.UUID
func (*GetByIDRequest) ProtoMessage ¶
func (*GetByIDRequest) ProtoMessage()
func (*GetByIDRequest) ProtoReflect ¶
func (x *GetByIDRequest) ProtoReflect() protoreflect.Message
func (*GetByIDRequest) Reset ¶
func (x *GetByIDRequest) Reset()
func (*GetByIDRequest) String ¶
func (x *GetByIDRequest) String() string
type GetByIDResponse ¶
type GetByIDResponse struct { HostGroup *HostGroup `protobuf:"bytes,1,opt,name=host_group,json=hostGroup,proto3" json:"host_group,omitempty"` // contains filtered or unexported fields }
func (*GetByIDResponse) Descriptor
deprecated
func (*GetByIDResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetByIDResponse.ProtoReflect.Descriptor instead.
func (*GetByIDResponse) GetHostGroup ¶
func (x *GetByIDResponse) GetHostGroup() *HostGroup
func (*GetByIDResponse) ProtoMessage ¶
func (*GetByIDResponse) ProtoMessage()
func (*GetByIDResponse) ProtoReflect ¶
func (x *GetByIDResponse) ProtoReflect() protoreflect.Message
func (*GetByIDResponse) Reset ¶
func (x *GetByIDResponse) Reset()
func (*GetByIDResponse) String ¶
func (x *GetByIDResponse) String() string
type HostGroup ¶
type HostGroup struct { Id *v1.UUID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Hide *wrapperspb.BoolValue `protobuf:"bytes,3,opt,name=hide,proto3" json:"hide,omitempty"` Pause *wrapperspb.BoolValue `protobuf:"bytes,4,opt,name=pause,proto3" json:"pause,omitempty"` Hosts *v11.Host `protobuf:"bytes,5,opt,name=hosts,proto3" json:"hosts,omitempty"` // contains filtered or unexported fields }
func (*HostGroup) Descriptor
deprecated
func (*HostGroup) GetHide ¶
func (x *HostGroup) GetHide() *wrapperspb.BoolValue
func (*HostGroup) GetPause ¶
func (x *HostGroup) GetPause() *wrapperspb.BoolValue
func (*HostGroup) ProtoMessage ¶
func (*HostGroup) ProtoMessage()
func (*HostGroup) ProtoReflect ¶
func (x *HostGroup) ProtoReflect() protoreflect.Message
type HostGroupServiceClient ¶
type HostGroupServiceClient interface { GetAll(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (*GetAllResponse, error) GetByID(ctx context.Context, in *GetByIDRequest, opts ...grpc.CallOption) (*GetByIDResponse, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) Store(ctx context.Context, in *StoreRequest, opts ...grpc.CallOption) (*StoreResponse, error) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) }
HostGroupServiceClient is the client API for HostGroupService 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 NewHostGroupServiceClient ¶
func NewHostGroupServiceClient(cc grpc.ClientConnInterface) HostGroupServiceClient
type HostGroupServiceServer ¶
type HostGroupServiceServer interface { GetAll(context.Context, *GetAllRequest) (*GetAllResponse, error) GetByID(context.Context, *GetByIDRequest) (*GetByIDResponse, error) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) Store(context.Context, *StoreRequest) (*StoreResponse, error) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) // contains filtered or unexported methods }
HostGroupServiceServer is the server API for HostGroupService service. All implementations must embed UnimplementedHostGroupServiceServer for forward compatibility
type StoreRequest ¶
type StoreRequest struct { HostGroups []*HostGroup `protobuf:"bytes,1,rep,name=host_groups,json=hostGroups,proto3" json:"host_groups,omitempty"` // contains filtered or unexported fields }
func (*StoreRequest) Descriptor
deprecated
func (*StoreRequest) Descriptor() ([]byte, []int)
Deprecated: Use StoreRequest.ProtoReflect.Descriptor instead.
func (*StoreRequest) GetHostGroups ¶
func (x *StoreRequest) GetHostGroups() []*HostGroup
func (*StoreRequest) ProtoMessage ¶
func (*StoreRequest) ProtoMessage()
func (*StoreRequest) ProtoReflect ¶
func (x *StoreRequest) ProtoReflect() protoreflect.Message
func (*StoreRequest) Reset ¶
func (x *StoreRequest) Reset()
func (*StoreRequest) String ¶
func (x *StoreRequest) String() string
type StoreResponse ¶
type StoreResponse struct { Ids []*v1.UUID `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*StoreResponse) Descriptor
deprecated
func (*StoreResponse) Descriptor() ([]byte, []int)
Deprecated: Use StoreResponse.ProtoReflect.Descriptor instead.
func (*StoreResponse) GetIds ¶
func (x *StoreResponse) GetIds() []*v1.UUID
func (*StoreResponse) ProtoMessage ¶
func (*StoreResponse) ProtoMessage()
func (*StoreResponse) ProtoReflect ¶
func (x *StoreResponse) ProtoReflect() protoreflect.Message
func (*StoreResponse) Reset ¶
func (x *StoreResponse) Reset()
func (*StoreResponse) String ¶
func (x *StoreResponse) String() string
type UnimplementedHostGroupServiceServer ¶
type UnimplementedHostGroupServiceServer struct { }
UnimplementedHostGroupServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedHostGroupServiceServer) Delete ¶
func (UnimplementedHostGroupServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedHostGroupServiceServer) GetAll ¶
func (UnimplementedHostGroupServiceServer) GetAll(context.Context, *GetAllRequest) (*GetAllResponse, error)
func (UnimplementedHostGroupServiceServer) GetByID ¶
func (UnimplementedHostGroupServiceServer) GetByID(context.Context, *GetByIDRequest) (*GetByIDResponse, error)
func (UnimplementedHostGroupServiceServer) Store ¶
func (UnimplementedHostGroupServiceServer) Store(context.Context, *StoreRequest) (*StoreResponse, error)
func (UnimplementedHostGroupServiceServer) Update ¶
func (UnimplementedHostGroupServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
type UnsafeHostGroupServiceServer ¶
type UnsafeHostGroupServiceServer interface {
// contains filtered or unexported methods
}
UnsafeHostGroupServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HostGroupServiceServer will result in compilation errors.
type UpdateRequest ¶
type UpdateRequest struct { HostGroup *HostGroup `protobuf:"bytes,1,opt,name=host_group,json=hostGroup,proto3" json:"host_group,omitempty"` // contains filtered or unexported fields }
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetHostGroup ¶
func (x *UpdateRequest) GetHostGroup() *HostGroup
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
type UpdateResponse ¶
type UpdateResponse struct {
// contains filtered or unexported fields
}
func (*UpdateResponse) Descriptor
deprecated
func (*UpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) ProtoReflect ¶
func (x *UpdateResponse) ProtoReflect() protoreflect.Message
func (*UpdateResponse) Reset ¶
func (x *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (x *UpdateResponse) String() string