cos

package
v0.0.0-...-cd72781 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OperType_name = map[int32]string{
		0: "OPERTYPE_UNKNOWN",
		1: "OPERTYPE_UPLOAD",
		2: "OPERTYPE_DOWNLOAD",
	}
	OperType_value = map[string]int32{
		"OPERTYPE_UNKNOWN":  0,
		"OPERTYPE_UPLOAD":   1,
		"OPERTYPE_DOWNLOAD": 2,
	}
)

Enum value maps for OperType.

Functions

This section is empty.

Types

type GetListReq

type GetListReq struct {
	Start int32 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*GetListReq) Descriptor deprecated

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

Deprecated: Use GetListReq.ProtoReflect.Descriptor instead.

func (*GetListReq) GetLimit

func (x *GetListReq) GetLimit() int32

func (*GetListReq) GetStart

func (x *GetListReq) GetStart() int32

func (*GetListReq) ProtoMessage

func (*GetListReq) ProtoMessage()

func (*GetListReq) ProtoReflect

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

func (*GetListReq) Reset

func (x *GetListReq) Reset()

func (*GetListReq) String

func (x *GetListReq) String() string

func (*GetListReq) Validate

func (m *GetListReq) Validate() error

Validate checks the field values on GetListReq 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 (*GetListReq) ValidateAll

func (m *GetListReq) ValidateAll() error

ValidateAll checks the field values on GetListReq 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 GetListReqMultiError, or nil if none found.

type GetListReqMultiError

type GetListReqMultiError []error

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

func (GetListReqMultiError) AllErrors

func (m GetListReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetListReqMultiError) Error

func (m GetListReqMultiError) Error() string

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

type GetListReqValidationError

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

GetListReqValidationError is the validation error returned by GetListReq.Validate if the designated constraints aren't met.

func (GetListReqValidationError) Cause

func (e GetListReqValidationError) Cause() error

Cause function returns cause value.

func (GetListReqValidationError) Error

Error satisfies the builtin error interface

func (GetListReqValidationError) ErrorName

func (e GetListReqValidationError) ErrorName() string

ErrorName returns error name.

func (GetListReqValidationError) Field

Field function returns field value.

func (GetListReqValidationError) Key

Key function returns key value.

func (GetListReqValidationError) Reason

func (e GetListReqValidationError) Reason() string

Reason function returns reason value.

type GetListRsp

type GetListRsp struct {
	IsEnd bool  `protobuf:"varint,1,opt,name=is_end,json=isEnd,proto3" json:"is_end,omitempty"`
	Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*GetListRsp) Descriptor deprecated

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

Deprecated: Use GetListRsp.ProtoReflect.Descriptor instead.

func (*GetListRsp) GetIsEnd

func (x *GetListRsp) GetIsEnd() bool

func (*GetListRsp) GetTotal

func (x *GetListRsp) GetTotal() int64

func (*GetListRsp) ProtoMessage

func (*GetListRsp) ProtoMessage()

func (*GetListRsp) ProtoReflect

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

func (*GetListRsp) Reset

func (x *GetListRsp) Reset()

func (*GetListRsp) String

func (x *GetListRsp) String() string

func (*GetListRsp) Validate

func (m *GetListRsp) Validate() error

Validate checks the field values on GetListRsp 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 (*GetListRsp) ValidateAll

func (m *GetListRsp) ValidateAll() error

ValidateAll checks the field values on GetListRsp 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 GetListRspMultiError, or nil if none found.

type GetListRspMultiError

type GetListRspMultiError []error

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

func (GetListRspMultiError) AllErrors

func (m GetListRspMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetListRspMultiError) Error

func (m GetListRspMultiError) Error() string

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

type GetListRspValidationError

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

GetListRspValidationError is the validation error returned by GetListRsp.Validate if the designated constraints aren't met.

func (GetListRspValidationError) Cause

func (e GetListRspValidationError) Cause() error

Cause function returns cause value.

func (GetListRspValidationError) Error

Error satisfies the builtin error interface

func (GetListRspValidationError) ErrorName

func (e GetListRspValidationError) ErrorName() string

ErrorName returns error name.

func (GetListRspValidationError) Field

Field function returns field value.

func (GetListRspValidationError) Key

Key function returns key value.

func (GetListRspValidationError) Reason

func (e GetListRspValidationError) Reason() string

Reason function returns reason value.

type OperType

type OperType int32
const (
	OperType_OPERTYPE_UNKNOWN  OperType = 0
	OperType_OPERTYPE_UPLOAD   OperType = 1
	OperType_OPERTYPE_DOWNLOAD OperType = 2
)

func (OperType) Descriptor

func (OperType) Descriptor() protoreflect.EnumDescriptor

func (OperType) Enum

func (x OperType) Enum() *OperType

func (OperType) EnumDescriptor deprecated

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

Deprecated: Use OperType.Descriptor instead.

func (OperType) Number

func (x OperType) Number() protoreflect.EnumNumber

func (OperType) String

func (x OperType) String() string

func (OperType) Type

type SetReq

type SetReq struct {
	ISBN string   `protobuf:"bytes,1,opt,name=ISBN,proto3" json:"ISBN,omitempty"`
	Type OperType `protobuf:"varint,2,opt,name=type,proto3,enum=cos.OperType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*SetReq) Descriptor deprecated

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

Deprecated: Use SetReq.ProtoReflect.Descriptor instead.

func (*SetReq) GetISBN

func (x *SetReq) GetISBN() string

func (*SetReq) GetType

func (x *SetReq) GetType() OperType

func (*SetReq) ProtoMessage

func (*SetReq) ProtoMessage()

func (*SetReq) ProtoReflect

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

func (*SetReq) Reset

func (x *SetReq) Reset()

func (*SetReq) String

func (x *SetReq) String() string

func (*SetReq) Validate

func (m *SetReq) Validate() error

Validate checks the field values on SetReq 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 (*SetReq) ValidateAll

func (m *SetReq) ValidateAll() error

ValidateAll checks the field values on SetReq 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 SetReqMultiError, or nil if none found.

type SetReqMultiError

type SetReqMultiError []error

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

func (SetReqMultiError) AllErrors

func (m SetReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetReqMultiError) Error

func (m SetReqMultiError) Error() string

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

type SetReqValidationError

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

SetReqValidationError is the validation error returned by SetReq.Validate if the designated constraints aren't met.

func (SetReqValidationError) Cause

func (e SetReqValidationError) Cause() error

Cause function returns cause value.

func (SetReqValidationError) Error

func (e SetReqValidationError) Error() string

Error satisfies the builtin error interface

func (SetReqValidationError) ErrorName

func (e SetReqValidationError) ErrorName() string

ErrorName returns error name.

func (SetReqValidationError) Field

func (e SetReqValidationError) Field() string

Field function returns field value.

func (SetReqValidationError) Key

func (e SetReqValidationError) Key() bool

Key function returns key value.

func (SetReqValidationError) Reason

func (e SetReqValidationError) Reason() string

Reason function returns reason value.

type SetRsp

type SetRsp struct {
	DownloadUrl string `protobuf:"bytes,1,opt,name=download_url,json=downloadUrl,proto3" json:"download_url,omitempty"`
	// contains filtered or unexported fields
}

func (*SetRsp) Descriptor deprecated

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

Deprecated: Use SetRsp.ProtoReflect.Descriptor instead.

func (*SetRsp) GetDownloadUrl

func (x *SetRsp) GetDownloadUrl() string

func (*SetRsp) ProtoMessage

func (*SetRsp) ProtoMessage()

func (*SetRsp) ProtoReflect

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

func (*SetRsp) Reset

func (x *SetRsp) Reset()

func (*SetRsp) String

func (x *SetRsp) String() string

func (*SetRsp) Validate

func (m *SetRsp) Validate() error

Validate checks the field values on SetRsp 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 (*SetRsp) ValidateAll

func (m *SetRsp) ValidateAll() error

ValidateAll checks the field values on SetRsp 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 SetRspMultiError, or nil if none found.

type SetRspMultiError

type SetRspMultiError []error

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

func (SetRspMultiError) AllErrors

func (m SetRspMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetRspMultiError) Error

func (m SetRspMultiError) Error() string

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

type SetRspValidationError

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

SetRspValidationError is the validation error returned by SetRsp.Validate if the designated constraints aren't met.

func (SetRspValidationError) Cause

func (e SetRspValidationError) Cause() error

Cause function returns cause value.

func (SetRspValidationError) Error

func (e SetRspValidationError) Error() string

Error satisfies the builtin error interface

func (SetRspValidationError) ErrorName

func (e SetRspValidationError) ErrorName() string

ErrorName returns error name.

func (SetRspValidationError) Field

func (e SetRspValidationError) Field() string

Field function returns field value.

func (SetRspValidationError) Key

func (e SetRspValidationError) Key() bool

Key function returns key value.

func (SetRspValidationError) Reason

func (e SetRspValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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