Documentation ¶
Index ¶
- Variables
- func RegisterServiceServiceServer(s grpc.ServiceRegistrar, srv ServiceServiceServer)
- type DeleteRequest
- type DeleteResponse
- type GetAllRequest
- type GetAllResponse
- type GetByIDRequest
- type GetByIDResponse
- type Service
- func (*Service) Descriptor() ([]byte, []int)deprecated
- func (x *Service) GetChecks() []*v12.Check
- func (x *Service) GetDisplayName() string
- func (x *Service) GetHide() *wrapperspb.BoolValue
- func (x *Service) GetHostId() *v1.UUID
- func (x *Service) GetId() *v1.UUID
- func (x *Service) GetName() string
- func (x *Service) GetPause() *wrapperspb.BoolValue
- func (x *Service) GetPointsBoost() *wrapperspb.UInt64Value
- func (x *Service) GetProperties() []*v11.Property
- func (x *Service) GetRoundDelay() *wrapperspb.UInt64Value
- func (x *Service) GetRoundUnits() uint64
- func (x *Service) GetServiceGroupId() *v1.UUID
- func (x *Service) GetWeight() *wrapperspb.UInt64Value
- func (*Service) ProtoMessage()
- func (x *Service) ProtoReflect() protoreflect.Message
- func (x *Service) Reset()
- func (x *Service) String() string
- type ServiceServiceClient
- type ServiceServiceServer
- type StoreRequest
- type StoreResponse
- type TestServiceRequest
- func (*TestServiceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TestServiceRequest) GetId() *v1.UUID
- func (*TestServiceRequest) ProtoMessage()
- func (x *TestServiceRequest) ProtoReflect() protoreflect.Message
- func (x *TestServiceRequest) Reset()
- func (x *TestServiceRequest) String() string
- type TestServiceResponse
- func (*TestServiceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TestServiceResponse) GetCheck() *v12.Check
- func (*TestServiceResponse) ProtoMessage()
- func (x *TestServiceResponse) ProtoReflect() protoreflect.Message
- func (x *TestServiceResponse) Reset()
- func (x *TestServiceResponse) String() string
- type UnimplementedServiceServiceServer
- func (UnimplementedServiceServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
- func (UnimplementedServiceServiceServer) GetAll(context.Context, *GetAllRequest) (*GetAllResponse, error)
- func (UnimplementedServiceServiceServer) GetByID(context.Context, *GetByIDRequest) (*GetByIDResponse, error)
- func (UnimplementedServiceServiceServer) Store(context.Context, *StoreRequest) (*StoreResponse, error)
- func (UnimplementedServiceServiceServer) TestService(context.Context, *TestServiceRequest) (*TestServiceResponse, error)
- func (UnimplementedServiceServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
- type UnsafeServiceServiceServer
- type UpdateRequest
- type UpdateResponse
Constants ¶
This section is empty.
Variables ¶
var File_pkg_proto_service_v1_service_proto protoreflect.FileDescriptor
var ServiceService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pkg.proto.service.v1.ServiceService", HandlerType: (*ServiceServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAll", Handler: _ServiceService_GetAll_Handler, }, { MethodName: "GetByID", Handler: _ServiceService_GetByID_Handler, }, { MethodName: "Delete", Handler: _ServiceService_Delete_Handler, }, { MethodName: "Store", Handler: _ServiceService_Store_Handler, }, { MethodName: "Update", Handler: _ServiceService_Update_Handler, }, { MethodName: "TestService", Handler: _ServiceService_TestService_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/proto/service/v1/service.proto", }
ServiceService_ServiceDesc is the grpc.ServiceDesc for ServiceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceServiceServer ¶
func RegisterServiceServiceServer(s grpc.ServiceRegistrar, srv ServiceServiceServer)
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 { Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"` // contains filtered or unexported fields }
func (*GetAllResponse) Descriptor
deprecated
func (*GetAllResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAllResponse.ProtoReflect.Descriptor instead.
func (*GetAllResponse) GetServices ¶
func (x *GetAllResponse) GetServices() []*Service
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 { Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` // contains filtered or unexported fields }
func (*GetByIDResponse) Descriptor
deprecated
func (*GetByIDResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetByIDResponse.ProtoReflect.Descriptor instead.
func (*GetByIDResponse) GetService ¶
func (x *GetByIDResponse) GetService() *Service
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 Service ¶
type Service 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"` DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` Weight *wrapperspb.UInt64Value `protobuf:"bytes,4,opt,name=weight,proto3" json:"weight,omitempty"` PointsBoost *wrapperspb.UInt64Value `protobuf:"bytes,5,opt,name=points_boost,json=pointsBoost,proto3" json:"points_boost,omitempty"` RoundUnits uint64 `protobuf:"varint,6,opt,name=round_units,json=roundUnits,proto3" json:"round_units,omitempty"` RoundDelay *wrapperspb.UInt64Value `protobuf:"bytes,7,opt,name=round_delay,json=roundDelay,proto3" json:"round_delay,omitempty"` ServiceGroupId *v1.UUID `protobuf:"bytes,8,opt,name=service_group_id,json=serviceGroupId,proto3" json:"service_group_id,omitempty"` HostId *v1.UUID `protobuf:"bytes,9,opt,name=host_id,json=hostId,proto3" json:"host_id,omitempty"` Hide *wrapperspb.BoolValue `protobuf:"bytes,10,opt,name=hide,proto3" json:"hide,omitempty"` Pause *wrapperspb.BoolValue `protobuf:"bytes,11,opt,name=pause,proto3" json:"pause,omitempty"` Properties []*v11.Property `protobuf:"bytes,12,rep,name=properties,proto3" json:"properties,omitempty"` Checks []*v12.Check `protobuf:"bytes,13,rep,name=checks,proto3" json:"checks,omitempty"` // contains filtered or unexported fields }
func (*Service) Descriptor
deprecated
func (*Service) GetDisplayName ¶
func (*Service) GetHide ¶
func (x *Service) GetHide() *wrapperspb.BoolValue
func (*Service) GetPause ¶
func (x *Service) GetPause() *wrapperspb.BoolValue
func (*Service) GetPointsBoost ¶
func (x *Service) GetPointsBoost() *wrapperspb.UInt64Value
func (*Service) GetProperties ¶
func (*Service) GetRoundDelay ¶
func (x *Service) GetRoundDelay() *wrapperspb.UInt64Value
func (*Service) GetRoundUnits ¶
func (*Service) GetServiceGroupId ¶
func (*Service) GetWeight ¶
func (x *Service) GetWeight() *wrapperspb.UInt64Value
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶
func (x *Service) ProtoReflect() protoreflect.Message
type ServiceServiceClient ¶
type ServiceServiceClient 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) TestService(ctx context.Context, in *TestServiceRequest, opts ...grpc.CallOption) (*TestServiceResponse, error) }
ServiceServiceClient is the client API for ServiceService 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 NewServiceServiceClient ¶
func NewServiceServiceClient(cc grpc.ClientConnInterface) ServiceServiceClient
type ServiceServiceServer ¶
type ServiceServiceServer 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) TestService(context.Context, *TestServiceRequest) (*TestServiceResponse, error) // contains filtered or unexported methods }
ServiceServiceServer is the server API for ServiceService service. All implementations must embed UnimplementedServiceServiceServer for forward compatibility
type StoreRequest ¶
type StoreRequest struct { Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"` // contains filtered or unexported fields }
func (*StoreRequest) Descriptor
deprecated
func (*StoreRequest) Descriptor() ([]byte, []int)
Deprecated: Use StoreRequest.ProtoReflect.Descriptor instead.
func (*StoreRequest) GetServices ¶
func (x *StoreRequest) GetServices() []*Service
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 TestServiceRequest ¶
type TestServiceRequest struct { Id *v1.UUID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*TestServiceRequest) Descriptor
deprecated
func (*TestServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use TestServiceRequest.ProtoReflect.Descriptor instead.
func (*TestServiceRequest) GetId ¶
func (x *TestServiceRequest) GetId() *v1.UUID
func (*TestServiceRequest) ProtoMessage ¶
func (*TestServiceRequest) ProtoMessage()
func (*TestServiceRequest) ProtoReflect ¶
func (x *TestServiceRequest) ProtoReflect() protoreflect.Message
func (*TestServiceRequest) Reset ¶
func (x *TestServiceRequest) Reset()
func (*TestServiceRequest) String ¶
func (x *TestServiceRequest) String() string
type TestServiceResponse ¶
type TestServiceResponse struct { Check *v12.Check `protobuf:"bytes,1,opt,name=check,proto3" json:"check,omitempty"` // contains filtered or unexported fields }
func (*TestServiceResponse) Descriptor
deprecated
func (*TestServiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use TestServiceResponse.ProtoReflect.Descriptor instead.
func (*TestServiceResponse) GetCheck ¶
func (x *TestServiceResponse) GetCheck() *v12.Check
func (*TestServiceResponse) ProtoMessage ¶
func (*TestServiceResponse) ProtoMessage()
func (*TestServiceResponse) ProtoReflect ¶
func (x *TestServiceResponse) ProtoReflect() protoreflect.Message
func (*TestServiceResponse) Reset ¶
func (x *TestServiceResponse) Reset()
func (*TestServiceResponse) String ¶
func (x *TestServiceResponse) String() string
type UnimplementedServiceServiceServer ¶
type UnimplementedServiceServiceServer struct { }
UnimplementedServiceServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServiceServer) Delete ¶
func (UnimplementedServiceServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedServiceServiceServer) GetAll ¶
func (UnimplementedServiceServiceServer) GetAll(context.Context, *GetAllRequest) (*GetAllResponse, error)
func (UnimplementedServiceServiceServer) GetByID ¶
func (UnimplementedServiceServiceServer) GetByID(context.Context, *GetByIDRequest) (*GetByIDResponse, error)
func (UnimplementedServiceServiceServer) Store ¶
func (UnimplementedServiceServiceServer) Store(context.Context, *StoreRequest) (*StoreResponse, error)
func (UnimplementedServiceServiceServer) TestService ¶
func (UnimplementedServiceServiceServer) TestService(context.Context, *TestServiceRequest) (*TestServiceResponse, error)
func (UnimplementedServiceServiceServer) Update ¶
func (UnimplementedServiceServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
type UnsafeServiceServiceServer ¶
type UnsafeServiceServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServiceServer will result in compilation errors.
type UpdateRequest ¶
type UpdateRequest struct { Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` // contains filtered or unexported fields }
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetService ¶
func (x *UpdateRequest) GetService() *Service
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