Documentation ¶
Index ¶
- Variables
- func RegisterProcjonServer(s grpc.ServiceRegistrar, srv ProcjonServer)
- type Empty
- type ProcjonClient
- type ProcjonServer
- type Procjon_SendServiceStatusClient
- type Procjon_SendServiceStatusServer
- type Service
- func (*Service) Descriptor() ([]byte, []int)deprecated
- func (x *Service) GetIdentifier() string
- func (x *Service) GetStatuses() []string
- func (x *Service) GetTimeout() uint32
- func (*Service) ProtoMessage()
- func (x *Service) ProtoReflect() protoreflect.Message
- func (x *Service) Reset()
- func (x *Service) String() string
- type ServiceStatus
- func (*ServiceStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceStatus) GetIdentifier() string
- func (x *ServiceStatus) GetStatusCode() uint32
- func (*ServiceStatus) ProtoMessage()
- func (x *ServiceStatus) ProtoReflect() protoreflect.Message
- func (x *ServiceStatus) Reset()
- func (x *ServiceStatus) String() string
- type UnimplementedProcjonServer
- type UnsafeProcjonServer
Constants ¶
This section is empty.
Variables ¶
var File_pb_procjon_proto protoreflect.FileDescriptor
Functions ¶
func RegisterProcjonServer ¶
func RegisterProcjonServer(s grpc.ServiceRegistrar, srv ProcjonServer)
Types ¶
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type ProcjonClient ¶
type ProcjonClient interface { RegisterService(ctx context.Context, in *Service, opts ...grpc.CallOption) (*Empty, error) SendServiceStatus(ctx context.Context, opts ...grpc.CallOption) (Procjon_SendServiceStatusClient, error) }
ProcjonClient is the client API for Procjon 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 NewProcjonClient ¶
func NewProcjonClient(cc grpc.ClientConnInterface) ProcjonClient
type ProcjonServer ¶
type ProcjonServer interface { RegisterService(context.Context, *Service) (*Empty, error) SendServiceStatus(Procjon_SendServiceStatusServer) error // contains filtered or unexported methods }
ProcjonServer is the server API for Procjon service. All implementations must embed UnimplementedProcjonServer for forward compatibility
type Procjon_SendServiceStatusClient ¶
type Procjon_SendServiceStatusClient interface { Send(*ServiceStatus) error CloseAndRecv() (*Empty, error) grpc.ClientStream }
type Procjon_SendServiceStatusServer ¶
type Procjon_SendServiceStatusServer interface { SendAndClose(*Empty) error Recv() (*ServiceStatus, error) grpc.ServerStream }
type Service ¶
type Service struct { Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` Statuses []string `protobuf:"bytes,2,rep,name=statuses,proto3" json:"statuses,omitempty"` Timeout uint32 `protobuf:"varint,3,opt,name=timeout,proto3" json:"timeout,omitempty"` // contains filtered or unexported fields }
func (*Service) Descriptor
deprecated
func (*Service) GetIdentifier ¶
func (*Service) GetStatuses ¶
func (*Service) GetTimeout ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶
func (x *Service) ProtoReflect() protoreflect.Message
type ServiceStatus ¶
type ServiceStatus struct { Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` StatusCode uint32 `protobuf:"varint,2,opt,name=statusCode,proto3" json:"statusCode,omitempty"` // contains filtered or unexported fields }
func (*ServiceStatus) Descriptor
deprecated
func (*ServiceStatus) Descriptor() ([]byte, []int)
Deprecated: Use ServiceStatus.ProtoReflect.Descriptor instead.
func (*ServiceStatus) GetIdentifier ¶
func (x *ServiceStatus) GetIdentifier() string
func (*ServiceStatus) GetStatusCode ¶
func (x *ServiceStatus) GetStatusCode() uint32
func (*ServiceStatus) ProtoMessage ¶
func (*ServiceStatus) ProtoMessage()
func (*ServiceStatus) ProtoReflect ¶
func (x *ServiceStatus) ProtoReflect() protoreflect.Message
func (*ServiceStatus) Reset ¶
func (x *ServiceStatus) Reset()
func (*ServiceStatus) String ¶
func (x *ServiceStatus) String() string
type UnimplementedProcjonServer ¶
type UnimplementedProcjonServer struct { }
UnimplementedProcjonServer must be embedded to have forward compatible implementations.
func (UnimplementedProcjonServer) RegisterService ¶
func (UnimplementedProcjonServer) SendServiceStatus ¶
func (UnimplementedProcjonServer) SendServiceStatus(Procjon_SendServiceStatusServer) error
type UnsafeProcjonServer ¶
type UnsafeProcjonServer interface {
// contains filtered or unexported methods
}
UnsafeProcjonServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProcjonServer will result in compilation errors.