common

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OrderBy_name = map[int32]string{
		0: "UNKNOWN",
		1: "ASC",
		2: "DESC",
	}
	OrderBy_value = map[string]int32{
		"UNKNOWN": 0,
		"ASC":     1,
		"DESC":    2,
	}
)

Enum value maps for OrderBy.

View Source
var File_pkg_proto_common_common_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ErrorItem

type ErrorItem struct {
	Code    int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*ErrorItem) Descriptor deprecated

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

Deprecated: Use ErrorItem.ProtoReflect.Descriptor instead.

func (*ErrorItem) GetCode

func (x *ErrorItem) GetCode() int32

func (*ErrorItem) GetMessage

func (x *ErrorItem) GetMessage() string

func (*ErrorItem) ProtoMessage

func (*ErrorItem) ProtoMessage()

func (*ErrorItem) ProtoReflect

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

func (*ErrorItem) Reset

func (x *ErrorItem) Reset()

func (*ErrorItem) String

func (x *ErrorItem) String() string

func (*ErrorItem) Validate

func (m *ErrorItem) Validate() error

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

type ErrorItemValidationError

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

ErrorItemValidationError is the validation error returned by ErrorItem.Validate if the designated constraints aren't met.

func (ErrorItemValidationError) Cause

func (e ErrorItemValidationError) Cause() error

Cause function returns cause value.

func (ErrorItemValidationError) Error

func (e ErrorItemValidationError) Error() string

Error satisfies the builtin error interface

func (ErrorItemValidationError) ErrorName

func (e ErrorItemValidationError) ErrorName() string

ErrorName returns error name.

func (ErrorItemValidationError) Field

func (e ErrorItemValidationError) Field() string

Field function returns field value.

func (ErrorItemValidationError) Key

Key function returns key value.

func (ErrorItemValidationError) Reason

func (e ErrorItemValidationError) Reason() string

Reason function returns reason value.

type ErrorResult

type ErrorResult struct {
	Error *ErrorItem `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*ErrorResult) Descriptor deprecated

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

Deprecated: Use ErrorResult.ProtoReflect.Descriptor instead.

func (*ErrorResult) GetError

func (x *ErrorResult) GetError() *ErrorItem

func (*ErrorResult) ProtoMessage

func (*ErrorResult) ProtoMessage()

func (*ErrorResult) ProtoReflect

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

func (*ErrorResult) Reset

func (x *ErrorResult) Reset()

func (*ErrorResult) String

func (x *ErrorResult) String() string

func (*ErrorResult) Validate

func (m *ErrorResult) Validate() error

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

type ErrorResultValidationError

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

ErrorResultValidationError is the validation error returned by ErrorResult.Validate if the designated constraints aren't met.

func (ErrorResultValidationError) Cause

Cause function returns cause value.

func (ErrorResultValidationError) Error

Error satisfies the builtin error interface

func (ErrorResultValidationError) ErrorName

func (e ErrorResultValidationError) ErrorName() string

ErrorName returns error name.

func (ErrorResultValidationError) Field

Field function returns field value.

func (ErrorResultValidationError) Key

Key function returns key value.

func (ErrorResultValidationError) Reason

Reason function returns reason value.

type IDResult

type IDResult struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*IDResult) Descriptor deprecated

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

Deprecated: Use IDResult.ProtoReflect.Descriptor instead.

func (*IDResult) GetId

func (x *IDResult) GetId() string

func (*IDResult) ProtoMessage

func (*IDResult) ProtoMessage()

func (*IDResult) ProtoReflect

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

func (*IDResult) Reset

func (x *IDResult) Reset()

func (*IDResult) String

func (x *IDResult) String() string

func (*IDResult) Validate

func (m *IDResult) Validate() error

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

type IDResultValidationError

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

IDResultValidationError is the validation error returned by IDResult.Validate if the designated constraints aren't met.

func (IDResultValidationError) Cause

func (e IDResultValidationError) Cause() error

Cause function returns cause value.

func (IDResultValidationError) Error

func (e IDResultValidationError) Error() string

Error satisfies the builtin error interface

func (IDResultValidationError) ErrorName

func (e IDResultValidationError) ErrorName() string

ErrorName returns error name.

func (IDResultValidationError) Field

func (e IDResultValidationError) Field() string

Field function returns field value.

func (IDResultValidationError) Key

func (e IDResultValidationError) Key() bool

Key function returns key value.

func (IDResultValidationError) Reason

func (e IDResultValidationError) Reason() string

Reason function returns reason value.

type OrderBy

type OrderBy int32
const (
	OrderBy_UNKNOWN OrderBy = 0
	OrderBy_ASC     OrderBy = 1
	OrderBy_DESC    OrderBy = 2
)

func (OrderBy) Descriptor

func (OrderBy) Descriptor() protoreflect.EnumDescriptor

func (OrderBy) Enum

func (x OrderBy) Enum() *OrderBy

func (OrderBy) EnumDescriptor deprecated

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

Deprecated: Use OrderBy.Descriptor instead.

func (OrderBy) Number

func (x OrderBy) Number() protoreflect.EnumNumber

func (OrderBy) String

func (x OrderBy) String() string

func (OrderBy) Type

func (OrderBy) Type() protoreflect.EnumType

type OrderByField

type OrderByField struct {
	Key       string  `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
	Direction OrderBy `protobuf:"varint,2,opt,name=Direction,proto3,enum=pkg.proto.common.OrderBy" json:"Direction,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderByField) Descriptor deprecated

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

Deprecated: Use OrderByField.ProtoReflect.Descriptor instead.

func (*OrderByField) GetDirection

func (x *OrderByField) GetDirection() OrderBy

func (*OrderByField) GetKey

func (x *OrderByField) GetKey() string

func (*OrderByField) ProtoMessage

func (*OrderByField) ProtoMessage()

func (*OrderByField) ProtoReflect

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

func (*OrderByField) Reset

func (x *OrderByField) Reset()

func (*OrderByField) String

func (x *OrderByField) String() string

func (*OrderByField) Validate

func (m *OrderByField) Validate() error

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

type OrderByFieldValidationError

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

OrderByFieldValidationError is the validation error returned by OrderByField.Validate if the designated constraints aren't met.

func (OrderByFieldValidationError) Cause

Cause function returns cause value.

func (OrderByFieldValidationError) Error

Error satisfies the builtin error interface

func (OrderByFieldValidationError) ErrorName

func (e OrderByFieldValidationError) ErrorName() string

ErrorName returns error name.

func (OrderByFieldValidationError) Field

Field function returns field value.

func (OrderByFieldValidationError) Key

Key function returns key value.

func (OrderByFieldValidationError) Reason

Reason function returns reason value.

type PaginationParam

type PaginationParam struct {
	Pagination bool   `protobuf:"varint,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	CountOnly  bool   `protobuf:"varint,2,opt,name=count_only,json=countOnly,proto3" json:"count_only,omitempty"`
	Page       int32  `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
	PageSize   int32  `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Cursor     string `protobuf:"bytes,5,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// contains filtered or unexported fields
}

func (*PaginationParam) Descriptor deprecated

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

Deprecated: Use PaginationParam.ProtoReflect.Descriptor instead.

func (*PaginationParam) GetCountOnly

func (x *PaginationParam) GetCountOnly() bool

func (*PaginationParam) GetCursor

func (x *PaginationParam) GetCursor() string

func (*PaginationParam) GetPage

func (x *PaginationParam) GetPage() int32

func (*PaginationParam) GetPageSize

func (x *PaginationParam) GetPageSize() int32

func (*PaginationParam) GetPagination

func (x *PaginationParam) GetPagination() bool

func (*PaginationParam) ProtoMessage

func (*PaginationParam) ProtoMessage()

func (*PaginationParam) ProtoReflect

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

func (*PaginationParam) Reset

func (x *PaginationParam) Reset()

func (*PaginationParam) String

func (x *PaginationParam) String() string

func (*PaginationParam) Validate

func (m *PaginationParam) Validate() error

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

type PaginationParamValidationError

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

PaginationParamValidationError is the validation error returned by PaginationParam.Validate if the designated constraints aren't met.

func (PaginationParamValidationError) Cause

Cause function returns cause value.

func (PaginationParamValidationError) Error

Error satisfies the builtin error interface

func (PaginationParamValidationError) ErrorName

func (e PaginationParamValidationError) ErrorName() string

ErrorName returns error name.

func (PaginationParamValidationError) Field

Field function returns field value.

func (PaginationParamValidationError) Key

Key function returns key value.

func (PaginationParamValidationError) Reason

Reason function returns reason value.

type PaginationResult

type PaginationResult struct {
	Total    int64  `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Page     int32  `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int32  `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Cursor   string `protobuf:"bytes,4,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// contains filtered or unexported fields
}

func (*PaginationResult) Descriptor deprecated

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

Deprecated: Use PaginationResult.ProtoReflect.Descriptor instead.

func (*PaginationResult) GetCursor

func (x *PaginationResult) GetCursor() string

func (*PaginationResult) GetPage

func (x *PaginationResult) GetPage() int32

func (*PaginationResult) GetPageSize

func (x *PaginationResult) GetPageSize() int32

func (*PaginationResult) GetTotal

func (x *PaginationResult) GetTotal() int64

func (*PaginationResult) ProtoMessage

func (*PaginationResult) ProtoMessage()

func (*PaginationResult) ProtoReflect

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

func (*PaginationResult) Reset

func (x *PaginationResult) Reset()

func (*PaginationResult) String

func (x *PaginationResult) String() string

func (*PaginationResult) Validate

func (m *PaginationResult) Validate() error

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

type PaginationResultValidationError

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

PaginationResultValidationError is the validation error returned by PaginationResult.Validate if the designated constraints aren't met.

func (PaginationResultValidationError) Cause

Cause function returns cause value.

func (PaginationResultValidationError) Error

Error satisfies the builtin error interface

func (PaginationResultValidationError) ErrorName

ErrorName returns error name.

func (PaginationResultValidationError) Field

Field function returns field value.

func (PaginationResultValidationError) Key

Key function returns key value.

func (PaginationResultValidationError) Reason

Reason function returns reason value.

type QueryOptions

type QueryOptions struct {
	OrderByFields []*OrderByField `protobuf:"bytes,1,rep,name=OrderByFields,proto3" json:"OrderByFields,omitempty"`
	SelectFields  []string        `protobuf:"bytes,2,rep,name=SelectFields,proto3" json:"SelectFields,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryOptions) Descriptor deprecated

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

Deprecated: Use QueryOptions.ProtoReflect.Descriptor instead.

func (*QueryOptions) GetOrderByFields

func (x *QueryOptions) GetOrderByFields() []*OrderByField

func (*QueryOptions) GetSelectFields

func (x *QueryOptions) GetSelectFields() []string

func (*QueryOptions) ProtoMessage

func (*QueryOptions) ProtoMessage()

func (*QueryOptions) ProtoReflect

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

func (*QueryOptions) Reset

func (x *QueryOptions) Reset()

func (*QueryOptions) String

func (x *QueryOptions) String() string

func (*QueryOptions) Validate

func (m *QueryOptions) Validate() error

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

type QueryOptionsValidationError

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

QueryOptionsValidationError is the validation error returned by QueryOptions.Validate if the designated constraints aren't met.

func (QueryOptionsValidationError) Cause

Cause function returns cause value.

func (QueryOptionsValidationError) Error

Error satisfies the builtin error interface

func (QueryOptionsValidationError) ErrorName

func (e QueryOptionsValidationError) ErrorName() string

ErrorName returns error name.

func (QueryOptionsValidationError) Field

Field function returns field value.

func (QueryOptionsValidationError) Key

Key function returns key value.

func (QueryOptionsValidationError) Reason

Reason function returns reason value.

type StatusResult

type StatusResult struct {
	Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*StatusResult) Descriptor deprecated

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

Deprecated: Use StatusResult.ProtoReflect.Descriptor instead.

func (*StatusResult) GetStatus

func (x *StatusResult) GetStatus() string

func (*StatusResult) ProtoMessage

func (*StatusResult) ProtoMessage()

func (*StatusResult) ProtoReflect

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

func (*StatusResult) Reset

func (x *StatusResult) Reset()

func (*StatusResult) String

func (x *StatusResult) String() string

func (*StatusResult) Validate

func (m *StatusResult) Validate() error

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

type StatusResultValidationError

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

StatusResultValidationError is the validation error returned by StatusResult.Validate if the designated constraints aren't met.

func (StatusResultValidationError) Cause

Cause function returns cause value.

func (StatusResultValidationError) Error

Error satisfies the builtin error interface

func (StatusResultValidationError) ErrorName

func (e StatusResultValidationError) ErrorName() string

ErrorName returns error name.

func (StatusResultValidationError) Field

Field function returns field value.

func (StatusResultValidationError) Key

Key function returns key value.

func (StatusResultValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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