service

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ServiceStatus_name = map[int32]string{
		0: "RUNNING",
		1: "IDLE",
	}
	ServiceStatus_value = map[string]int32{
		"RUNNING": 0,
		"IDLE":    1,
	}
)

Enum value maps for ServiceStatus.

View Source
var File_service_error_proto protoreflect.FileDescriptor
View Source
var File_service_health_proto protoreflect.FileDescriptor
View Source
var File_service_info_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CommonError

type CommonError struct {
	Code                 string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Severity             string `protobuf:"bytes,2,opt,name=severity,proto3" json:"severity,omitempty"`
	ShortDescription     string `protobuf:"bytes,3,opt,name=shortDescription,proto3" json:"shortDescription,omitempty"`
	LongDescription      string `protobuf:"bytes,4,opt,name=longDescription,proto3" json:"longDescription,omitempty"`
	ProbableCause        string `protobuf:"bytes,5,opt,name=probableCause,proto3" json:"probableCause,omitempty"`
	SuggestedRemediation string `protobuf:"bytes,6,opt,name=suggestedRemediation,proto3" json:"suggestedRemediation,omitempty"`
	// contains filtered or unexported fields
}

func (*CommonError) Descriptor deprecated

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

Deprecated: Use CommonError.ProtoReflect.Descriptor instead.

func (*CommonError) GetCode

func (x *CommonError) GetCode() string

func (*CommonError) GetLongDescription

func (x *CommonError) GetLongDescription() string

func (*CommonError) GetProbableCause

func (x *CommonError) GetProbableCause() string

func (*CommonError) GetSeverity

func (x *CommonError) GetSeverity() string

func (*CommonError) GetShortDescription

func (x *CommonError) GetShortDescription() string

func (*CommonError) GetSuggestedRemediation

func (x *CommonError) GetSuggestedRemediation() string

func (*CommonError) ProtoMessage

func (*CommonError) ProtoMessage()

func (*CommonError) ProtoReflect

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

func (*CommonError) Reset

func (x *CommonError) Reset()

func (*CommonError) String

func (x *CommonError) String() string

type ServiceHealth

type ServiceHealth struct {
	Status ServiceStatus `protobuf:"varint,1,opt,name=status,proto3,enum=service.ServiceStatus" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceHealth) Descriptor deprecated

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

Deprecated: Use ServiceHealth.ProtoReflect.Descriptor instead.

func (*ServiceHealth) GetStatus

func (x *ServiceHealth) GetStatus() ServiceStatus

func (*ServiceHealth) ProtoMessage

func (*ServiceHealth) ProtoMessage()

func (*ServiceHealth) ProtoReflect

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

func (*ServiceHealth) Reset

func (x *ServiceHealth) Reset()

func (*ServiceHealth) String

func (x *ServiceHealth) String() string

type ServiceInfo

type ServiceInfo struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceInfo) Descriptor deprecated

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

Deprecated: Use ServiceInfo.ProtoReflect.Descriptor instead.

func (*ServiceInfo) GetName

func (x *ServiceInfo) GetName() string

func (*ServiceInfo) GetVersion

func (x *ServiceInfo) GetVersion() string

func (*ServiceInfo) ProtoMessage

func (*ServiceInfo) ProtoMessage()

func (*ServiceInfo) ProtoReflect

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

func (*ServiceInfo) Reset

func (x *ServiceInfo) Reset()

func (*ServiceInfo) String

func (x *ServiceInfo) String() string

type ServiceStatus

type ServiceStatus int32
const (
	ServiceStatus_RUNNING ServiceStatus = 0
	ServiceStatus_IDLE    ServiceStatus = 1
)

func (ServiceStatus) Descriptor

func (ServiceStatus) Enum

func (x ServiceStatus) Enum() *ServiceStatus

func (ServiceStatus) EnumDescriptor deprecated

func (ServiceStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use ServiceStatus.Descriptor instead.

func (ServiceStatus) Number

func (ServiceStatus) String

func (x ServiceStatus) String() string

func (ServiceStatus) Type

Jump to

Keyboard shortcuts

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