grpc_catalog_common_go

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 15 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OpStatus_name = map[int32]string{
		0: "UNKNOWN",
		1: "SUCCESS",
	}
	OpStatus_value = map[string]int32{
		"UNKNOWN": 0,
		"SUCCESS": 1,
	}
)

Enum value maps for OpStatus.

View Source
var File_catalog_common_entities_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type EmptyRequest

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

Empty message as required by gRPC for services not requiring any parameters.

func (*EmptyRequest) Descriptor deprecated

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

Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead.

func (*EmptyRequest) ProtoMessage

func (*EmptyRequest) ProtoMessage()

func (*EmptyRequest) ProtoReflect

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

func (*EmptyRequest) Reset

func (x *EmptyRequest) Reset()

func (*EmptyRequest) String

func (x *EmptyRequest) String() string

func (*EmptyRequest) Validate

func (m *EmptyRequest) Validate() error

Validate checks the field values on EmptyRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type EmptyRequestValidationError

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

EmptyRequestValidationError is the validation error returned by EmptyRequest.Validate if the designated constraints aren't met.

func (EmptyRequestValidationError) Cause

Cause function returns cause value.

func (EmptyRequestValidationError) Error

Error satisfies the builtin error interface

func (EmptyRequestValidationError) ErrorName

func (e EmptyRequestValidationError) ErrorName() string

ErrorName returns error name.

func (EmptyRequestValidationError) Field

Field function returns field value.

func (EmptyRequestValidationError) Key

Key function returns key value.

func (EmptyRequestValidationError) Reason

Reason function returns reason value.

type OpResponse

type OpResponse struct {

	// Status of the operation.
	Status OpStatus `protobuf:"varint,1,opt,name=status,proto3,enum=catalog_common.OpStatus" json:"status,omitempty"`
	// StatusName with the string representation of the status.
	StatusName string `protobuf:"bytes,2,opt,name=status_name,json=statusName,proto3" json:"status_name,omitempty"`
	// UserInfo with additional information to show to the user.
	UserInfo string `protobuf:"bytes,3,opt,name=user_info,json=userInfo,proto3" json:"user_info,omitempty"`
	// contains filtered or unexported fields
}

OpResponse with a common definition for the result of executing an operation through gRPC. Notice that in case of an error, the call must fail unless the operation is executed asynchronously and this message contains the result of a past operation.

func (*OpResponse) Descriptor deprecated

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

Deprecated: Use OpResponse.ProtoReflect.Descriptor instead.

func (*OpResponse) GetStatus

func (x *OpResponse) GetStatus() OpStatus

func (*OpResponse) GetStatusName

func (x *OpResponse) GetStatusName() string

func (*OpResponse) GetUserInfo

func (x *OpResponse) GetUserInfo() string

func (*OpResponse) ProtoMessage

func (*OpResponse) ProtoMessage()

func (*OpResponse) ProtoReflect

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

func (*OpResponse) Reset

func (x *OpResponse) Reset()

func (*OpResponse) String

func (x *OpResponse) String() string

func (*OpResponse) Validate

func (m *OpResponse) Validate() error

Validate checks the field values on OpResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type OpResponseValidationError

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

OpResponseValidationError is the validation error returned by OpResponse.Validate if the designated constraints aren't met.

func (OpResponseValidationError) Cause

func (e OpResponseValidationError) Cause() error

Cause function returns cause value.

func (OpResponseValidationError) Error

Error satisfies the builtin error interface

func (OpResponseValidationError) ErrorName

func (e OpResponseValidationError) ErrorName() string

ErrorName returns error name.

func (OpResponseValidationError) Field

Field function returns field value.

func (OpResponseValidationError) Key

Key function returns key value.

func (OpResponseValidationError) Reason

func (e OpResponseValidationError) Reason() string

Reason function returns reason value.

type OpStatus

type OpStatus int32

OpStatus enumeration defining the possible status of an operation.

const (
	// Unknown operation status indicates an error in the processing of the request as all operations should
	// have a determined status.
	OpStatus_UNKNOWN OpStatus = 0
	// Success indicates that the operation was completed successfully.
	OpStatus_SUCCESS OpStatus = 1
)

func (OpStatus) Descriptor

func (OpStatus) Descriptor() protoreflect.EnumDescriptor

func (OpStatus) Enum

func (x OpStatus) Enum() *OpStatus

func (OpStatus) EnumDescriptor deprecated

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

Deprecated: Use OpStatus.Descriptor instead.

func (OpStatus) Number

func (x OpStatus) Number() protoreflect.EnumNumber

func (OpStatus) String

func (x OpStatus) String() string

func (OpStatus) Type

Jump to

Keyboard shortcuts

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