fileserve

package
v0.0.0-...-5b9a9d8 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_clouway_rpc_fileserve_fileserve_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BinaryFile

type BinaryFile struct {

	// The content-type to be provided.
	ContentType string `protobuf:"bytes,1,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
	// The name of the file.
	FileName string `protobuf:"bytes,2,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
	// The binary content.
	Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

Binary is representing a Binary message that to the send to the backend once the data is available.

func (*BinaryFile) Descriptor deprecated

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

Deprecated: Use BinaryFile.ProtoReflect.Descriptor instead.

func (*BinaryFile) GetContent

func (x *BinaryFile) GetContent() []byte

func (*BinaryFile) GetContentType

func (x *BinaryFile) GetContentType() string

func (*BinaryFile) GetFileName

func (x *BinaryFile) GetFileName() string

func (*BinaryFile) ProtoMessage

func (*BinaryFile) ProtoMessage()

func (*BinaryFile) ProtoReflect

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

func (*BinaryFile) Reset

func (x *BinaryFile) Reset()

func (*BinaryFile) String

func (x *BinaryFile) String() string

func (*BinaryFile) Validate

func (m *BinaryFile) Validate() error

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

func (m *BinaryFile) ValidateAll() error

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

type BinaryFileMultiError

type BinaryFileMultiError []error

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

func (BinaryFileMultiError) AllErrors

func (m BinaryFileMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BinaryFileMultiError) Error

func (m BinaryFileMultiError) Error() string

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

type BinaryFileValidationError

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

BinaryFileValidationError is the validation error returned by BinaryFile.Validate if the designated constraints aren't met.

func (BinaryFileValidationError) Cause

func (e BinaryFileValidationError) Cause() error

Cause function returns cause value.

func (BinaryFileValidationError) Error

Error satisfies the builtin error interface

func (BinaryFileValidationError) ErrorName

func (e BinaryFileValidationError) ErrorName() string

ErrorName returns error name.

func (BinaryFileValidationError) Field

Field function returns field value.

func (BinaryFileValidationError) Key

Key function returns key value.

func (BinaryFileValidationError) Reason

func (e BinaryFileValidationError) 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