statusv1

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MessageKind_name = map[int32]string{
		0: "MESSAGE_KIND_UNSPECIFIED",
		1: "MESSAGE_KIND_INFO",
		2: "MESSAGE_KIND_INCIDENT",
		3: "MESSAGE_KIND_CHANGE",
		4: "MESSAGE_KIND_RESOLVED",
		5: "MESSAGE_KIND_UPDATE",
	}
	MessageKind_value = map[string]int32{
		"MESSAGE_KIND_UNSPECIFIED": 0,
		"MESSAGE_KIND_INFO":        1,
		"MESSAGE_KIND_INCIDENT":    2,
		"MESSAGE_KIND_CHANGE":      3,
		"MESSAGE_KIND_RESOLVED":    4,
		"MESSAGE_KIND_UPDATE":      5,
	}
)

Enum value maps for MessageKind.

View Source
var File_status_v1_message_proto protoreflect.FileDescriptor
View Source
var File_status_v1_status_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Message

type Message struct {

	// Id of the message
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Text of the message
	Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	// Kind of the message, this is to distinguish between the importance of a message
	Kind MessageKind `protobuf:"varint,3,opt,name=kind,proto3,enum=status.v1.MessageKind" json:"kind,omitempty"`
	// Timestamp when this message was created
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Replies are messages which are followups to the initial message
	Replies []*ReplyMessage `protobuf:"bytes,5,rep,name=replies,proto3" json:"replies,omitempty"`
	// contains filtered or unexported fields
}

Message is a test message to be displayed in the status

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetId

func (x *Message) GetId() string

func (*Message) GetKind

func (x *Message) GetKind() MessageKind

func (*Message) GetReplies

func (x *Message) GetReplies() []*ReplyMessage

func (*Message) GetText

func (x *Message) GetText() string

func (*Message) GetTimestamp

func (x *Message) GetTimestamp() *timestamppb.Timestamp

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

func (*Message) Validate

func (m *Message) Validate() error

Validate checks the field values on Message with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Message) ValidateAll

func (m *Message) ValidateAll() error

ValidateAll checks the field values on Message with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MessageMultiError, or nil if none found.

type MessageKind

type MessageKind int32

MessageKind defines what type of message it is

const (
	// MESSAGE_KIND_UNSPECIFIED is not specified
	MessageKind_MESSAGE_KIND_UNSPECIFIED MessageKind = 0
	// MESSAGE_KIND_INFO is a informational message
	MessageKind_MESSAGE_KIND_INFO MessageKind = 1
	// MESSAGE_KIND_INCIDENT is a incident message
	MessageKind_MESSAGE_KIND_INCIDENT MessageKind = 2
	// MESSAGE_KIND_CHANGE is a change message
	MessageKind_MESSAGE_KIND_CHANGE MessageKind = 3
	// MESSAGE_KIND_RESOLVED is a resolved message
	MessageKind_MESSAGE_KIND_RESOLVED MessageKind = 4
	// MESSAGE_KIND_UPDATE is a update message
	MessageKind_MESSAGE_KIND_UPDATE MessageKind = 5
)

func (MessageKind) Descriptor

func (MessageKind) Enum

func (x MessageKind) Enum() *MessageKind

func (MessageKind) EnumDescriptor deprecated

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

Deprecated: Use MessageKind.Descriptor instead.

func (MessageKind) Number

func (x MessageKind) Number() protoreflect.EnumNumber

func (MessageKind) String

func (x MessageKind) String() string

func (MessageKind) Type

type MessageMultiError

type MessageMultiError []error

MessageMultiError is an error wrapping multiple validation errors returned by Message.ValidateAll() if the designated constraints aren't met.

func (MessageMultiError) AllErrors

func (m MessageMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MessageMultiError) Error

func (m MessageMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MessageServiceListRequest

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

MessageServiceListRequest is the request payload to get the messages

func (*MessageServiceListRequest) Descriptor deprecated

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

Deprecated: Use MessageServiceListRequest.ProtoReflect.Descriptor instead.

func (*MessageServiceListRequest) ProtoMessage

func (*MessageServiceListRequest) ProtoMessage()

func (*MessageServiceListRequest) ProtoReflect

func (*MessageServiceListRequest) Reset

func (x *MessageServiceListRequest) Reset()

func (*MessageServiceListRequest) String

func (x *MessageServiceListRequest) String() string

func (*MessageServiceListRequest) Validate

func (m *MessageServiceListRequest) Validate() error

Validate checks the field values on MessageServiceListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*MessageServiceListRequest) ValidateAll

func (m *MessageServiceListRequest) ValidateAll() error

ValidateAll checks the field values on MessageServiceListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MessageServiceListRequestMultiError, or nil if none found.

type MessageServiceListRequestMultiError

type MessageServiceListRequestMultiError []error

MessageServiceListRequestMultiError is an error wrapping multiple validation errors returned by MessageServiceListRequest.ValidateAll() if the designated constraints aren't met.

func (MessageServiceListRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (MessageServiceListRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type MessageServiceListRequestValidationError

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

MessageServiceListRequestValidationError is the validation error returned by MessageServiceListRequest.Validate if the designated constraints aren't met.

func (MessageServiceListRequestValidationError) Cause

Cause function returns cause value.

func (MessageServiceListRequestValidationError) Error

Error satisfies the builtin error interface

func (MessageServiceListRequestValidationError) ErrorName

ErrorName returns error name.

func (MessageServiceListRequestValidationError) Field

Field function returns field value.

func (MessageServiceListRequestValidationError) Key

Key function returns key value.

func (MessageServiceListRequestValidationError) Reason

Reason function returns reason value.

type MessageServiceListResponse

type MessageServiceListResponse struct {

	// Items is a slice of all messages
	Items []*Message `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// PinnedItems are messages which are of special interest
	PinnedItems []*Message `protobuf:"bytes,2,rep,name=pinned_items,json=pinnedItems,proto3" json:"pinned_items,omitempty"`
	// contains filtered or unexported fields
}

MessageServiceListResponse is the response payload with the messages

func (*MessageServiceListResponse) Descriptor deprecated

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

Deprecated: Use MessageServiceListResponse.ProtoReflect.Descriptor instead.

func (*MessageServiceListResponse) GetItems

func (x *MessageServiceListResponse) GetItems() []*Message

func (*MessageServiceListResponse) GetPinnedItems

func (x *MessageServiceListResponse) GetPinnedItems() []*Message

func (*MessageServiceListResponse) ProtoMessage

func (*MessageServiceListResponse) ProtoMessage()

func (*MessageServiceListResponse) ProtoReflect

func (*MessageServiceListResponse) Reset

func (x *MessageServiceListResponse) Reset()

func (*MessageServiceListResponse) String

func (x *MessageServiceListResponse) String() string

func (*MessageServiceListResponse) Validate

func (m *MessageServiceListResponse) Validate() error

Validate checks the field values on MessageServiceListResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*MessageServiceListResponse) ValidateAll

func (m *MessageServiceListResponse) ValidateAll() error

ValidateAll checks the field values on MessageServiceListResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MessageServiceListResponseMultiError, or nil if none found.

type MessageServiceListResponseMultiError

type MessageServiceListResponseMultiError []error

MessageServiceListResponseMultiError is an error wrapping multiple validation errors returned by MessageServiceListResponse.ValidateAll() if the designated constraints aren't met.

func (MessageServiceListResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (MessageServiceListResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type MessageServiceListResponseValidationError

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

MessageServiceListResponseValidationError is the validation error returned by MessageServiceListResponse.Validate if the designated constraints aren't met.

func (MessageServiceListResponseValidationError) Cause

Cause function returns cause value.

func (MessageServiceListResponseValidationError) Error

Error satisfies the builtin error interface

func (MessageServiceListResponseValidationError) ErrorName

ErrorName returns error name.

func (MessageServiceListResponseValidationError) Field

Field function returns field value.

func (MessageServiceListResponseValidationError) Key

Key function returns key value.

func (MessageServiceListResponseValidationError) Reason

Reason function returns reason value.

type MessageValidationError

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

MessageValidationError is the validation error returned by Message.Validate if the designated constraints aren't met.

func (MessageValidationError) Cause

func (e MessageValidationError) Cause() error

Cause function returns cause value.

func (MessageValidationError) Error

func (e MessageValidationError) Error() string

Error satisfies the builtin error interface

func (MessageValidationError) ErrorName

func (e MessageValidationError) ErrorName() string

ErrorName returns error name.

func (MessageValidationError) Field

func (e MessageValidationError) Field() string

Field function returns field value.

func (MessageValidationError) Key

func (e MessageValidationError) Key() bool

Key function returns key value.

func (MessageValidationError) Reason

func (e MessageValidationError) Reason() string

Reason function returns reason value.

type ReplyMessage

type ReplyMessage struct {

	// Id of the message
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Text of the message
	Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	// Kind of the message, this is to distinguish between the importance of a message
	Kind MessageKind `protobuf:"varint,3,opt,name=kind,proto3,enum=status.v1.MessageKind" json:"kind,omitempty"`
	// Timestamp when this message was created
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

ReplyMessage is a message as a followup of a initial message

func (*ReplyMessage) Descriptor deprecated

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

Deprecated: Use ReplyMessage.ProtoReflect.Descriptor instead.

func (*ReplyMessage) GetId

func (x *ReplyMessage) GetId() string

func (*ReplyMessage) GetKind

func (x *ReplyMessage) GetKind() MessageKind

func (*ReplyMessage) GetText

func (x *ReplyMessage) GetText() string

func (*ReplyMessage) GetTimestamp

func (x *ReplyMessage) GetTimestamp() *timestamppb.Timestamp

func (*ReplyMessage) ProtoMessage

func (*ReplyMessage) ProtoMessage()

func (*ReplyMessage) ProtoReflect

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

func (*ReplyMessage) Reset

func (x *ReplyMessage) Reset()

func (*ReplyMessage) String

func (x *ReplyMessage) String() string

func (*ReplyMessage) Validate

func (m *ReplyMessage) Validate() error

Validate checks the field values on ReplyMessage with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ReplyMessage) ValidateAll

func (m *ReplyMessage) ValidateAll() error

ValidateAll checks the field values on ReplyMessage with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ReplyMessageMultiError, or nil if none found.

type ReplyMessageMultiError

type ReplyMessageMultiError []error

ReplyMessageMultiError is an error wrapping multiple validation errors returned by ReplyMessage.ValidateAll() if the designated constraints aren't met.

func (ReplyMessageMultiError) AllErrors

func (m ReplyMessageMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ReplyMessageMultiError) Error

func (m ReplyMessageMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ReplyMessageValidationError

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

ReplyMessageValidationError is the validation error returned by ReplyMessage.Validate if the designated constraints aren't met.

func (ReplyMessageValidationError) Cause

Cause function returns cause value.

func (ReplyMessageValidationError) Error

Error satisfies the builtin error interface

func (ReplyMessageValidationError) ErrorName

func (e ReplyMessageValidationError) ErrorName() string

ErrorName returns error name.

func (ReplyMessageValidationError) Field

Field function returns field value.

func (ReplyMessageValidationError) Key

Key function returns key value.

func (ReplyMessageValidationError) Reason

Reason function returns reason value.

type StatusServiceGetRequest

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

StatusServiceGetRequest is the request payload to get the status

func (*StatusServiceGetRequest) Descriptor deprecated

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

Deprecated: Use StatusServiceGetRequest.ProtoReflect.Descriptor instead.

func (*StatusServiceGetRequest) ProtoMessage

func (*StatusServiceGetRequest) ProtoMessage()

func (*StatusServiceGetRequest) ProtoReflect

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

func (*StatusServiceGetRequest) Reset

func (x *StatusServiceGetRequest) Reset()

func (*StatusServiceGetRequest) String

func (x *StatusServiceGetRequest) String() string

func (*StatusServiceGetRequest) Validate

func (m *StatusServiceGetRequest) Validate() error

Validate checks the field values on StatusServiceGetRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*StatusServiceGetRequest) ValidateAll

func (m *StatusServiceGetRequest) ValidateAll() error

ValidateAll checks the field values on StatusServiceGetRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StatusServiceGetRequestMultiError, or nil if none found.

type StatusServiceGetRequestMultiError

type StatusServiceGetRequestMultiError []error

StatusServiceGetRequestMultiError is an error wrapping multiple validation errors returned by StatusServiceGetRequest.ValidateAll() if the designated constraints aren't met.

func (StatusServiceGetRequestMultiError) AllErrors

func (m StatusServiceGetRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StatusServiceGetRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type StatusServiceGetRequestValidationError

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

StatusServiceGetRequestValidationError is the validation error returned by StatusServiceGetRequest.Validate if the designated constraints aren't met.

func (StatusServiceGetRequestValidationError) Cause

Cause function returns cause value.

func (StatusServiceGetRequestValidationError) Error

Error satisfies the builtin error interface

func (StatusServiceGetRequestValidationError) ErrorName

ErrorName returns error name.

func (StatusServiceGetRequestValidationError) Field

Field function returns field value.

func (StatusServiceGetRequestValidationError) Key

Key function returns key value.

func (StatusServiceGetRequestValidationError) Reason

Reason function returns reason value.

type StatusServiceGetResponse

type StatusServiceGetResponse struct {

	// Health of the individual services
	Health *v1.Health `protobuf:"bytes,1,opt,name=health,proto3" json:"health,omitempty"`
	// OverallStatus is the status of the system
	OverallStatus v1.ServiceStatus `` /* 127-byte string literal not displayed */
	// ConnectionBroken shows if the connection to the system is broken
	ConnectionBroken bool `protobuf:"varint,3,opt,name=connection_broken,json=connectionBroken,proto3" json:"connection_broken,omitempty"`
	// ApiVersion of the system
	ApiVersion string `protobuf:"bytes,4,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
	// contains filtered or unexported fields
}

StatusServiceGetResponse is the response payload which describes the system status

func (*StatusServiceGetResponse) Descriptor deprecated

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

Deprecated: Use StatusServiceGetResponse.ProtoReflect.Descriptor instead.

func (*StatusServiceGetResponse) GetApiVersion

func (x *StatusServiceGetResponse) GetApiVersion() string

func (*StatusServiceGetResponse) GetConnectionBroken

func (x *StatusServiceGetResponse) GetConnectionBroken() bool

func (*StatusServiceGetResponse) GetHealth

func (x *StatusServiceGetResponse) GetHealth() *v1.Health

func (*StatusServiceGetResponse) GetOverallStatus

func (x *StatusServiceGetResponse) GetOverallStatus() v1.ServiceStatus

func (*StatusServiceGetResponse) ProtoMessage

func (*StatusServiceGetResponse) ProtoMessage()

func (*StatusServiceGetResponse) ProtoReflect

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

func (*StatusServiceGetResponse) Reset

func (x *StatusServiceGetResponse) Reset()

func (*StatusServiceGetResponse) String

func (x *StatusServiceGetResponse) String() string

func (*StatusServiceGetResponse) Validate

func (m *StatusServiceGetResponse) Validate() error

Validate checks the field values on StatusServiceGetResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*StatusServiceGetResponse) ValidateAll

func (m *StatusServiceGetResponse) ValidateAll() error

ValidateAll checks the field values on StatusServiceGetResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StatusServiceGetResponseMultiError, or nil if none found.

type StatusServiceGetResponseMultiError

type StatusServiceGetResponseMultiError []error

StatusServiceGetResponseMultiError is an error wrapping multiple validation errors returned by StatusServiceGetResponse.ValidateAll() if the designated constraints aren't met.

func (StatusServiceGetResponseMultiError) AllErrors

func (m StatusServiceGetResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StatusServiceGetResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type StatusServiceGetResponseValidationError

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

StatusServiceGetResponseValidationError is the validation error returned by StatusServiceGetResponse.Validate if the designated constraints aren't met.

func (StatusServiceGetResponseValidationError) Cause

Cause function returns cause value.

func (StatusServiceGetResponseValidationError) Error

Error satisfies the builtin error interface

func (StatusServiceGetResponseValidationError) ErrorName

ErrorName returns error name.

func (StatusServiceGetResponseValidationError) Field

Field function returns field value.

func (StatusServiceGetResponseValidationError) Key

Key function returns key value.

func (StatusServiceGetResponseValidationError) Reason

Reason function returns reason value.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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