file

package
v4.25.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: AGPL-3.0 Imports: 31 Imported by: 0

Documentation

Overview

Package file is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	File_List_FullMethodName          = "/file.File/List"
	File_ShowRecords_FullMethodName   = "/file.File/ShowRecords"
	File_Delete_FullMethodName        = "/file.File/Delete"
	File_DiskInfo_FullMethodName      = "/file.File/DiskInfo"
	File_MaxUploadSize_FullMethodName = "/file.File/MaxUploadSize"
)

Variables

View Source
var File_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "file.File",
	HandlerType: (*FileServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _File_List_Handler,
		},
		{
			MethodName: "ShowRecords",
			Handler:    _File_ShowRecords_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _File_Delete_Handler,
		},
		{
			MethodName: "DiskInfo",
			Handler:    _File_DiskInfo_Handler,
		},
		{
			MethodName: "MaxUploadSize",
			Handler:    _File_MaxUploadSize_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "file/file.proto",
}

File_ServiceDesc is the grpc.ServiceDesc for File service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_file_file_proto protoreflect.FileDescriptor

Functions

func RegisterFileHandler

func RegisterFileHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterFileHandler registers the http handlers for service File to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterFileHandlerClient

func RegisterFileHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FileClient) error

RegisterFileHandlerClient registers the http handlers for service File to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "FileClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "FileClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "FileClient" to call the correct interceptors.

func RegisterFileHandlerFromEndpoint

func RegisterFileHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterFileHandlerFromEndpoint is same as RegisterFileHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterFileHandlerServer

func RegisterFileHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FileServer) error

RegisterFileHandlerServer registers the http handlers for service File to "mux". UnaryRPC :call FileServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterFileHandlerFromEndpoint instead.

func RegisterFileServer

func RegisterFileServer(s grpc.ServiceRegistrar, srv FileServer)

Types

type DeleteRequest

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

func (*DeleteRequest) Descriptor deprecated

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

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetId

func (x *DeleteRequest) GetId() int64

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

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

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

func (*DeleteRequest) Validate

func (m *DeleteRequest) Validate() error

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

func (m *DeleteRequest) ValidateAll() error

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

type DeleteRequestMultiError

type DeleteRequestMultiError []error

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

func (DeleteRequestMultiError) AllErrors

func (m DeleteRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteRequestMultiError) Error

func (m DeleteRequestMultiError) Error() string

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

type DeleteRequestValidationError

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

DeleteRequestValidationError is the validation error returned by DeleteRequest.Validate if the designated constraints aren't met.

func (DeleteRequestValidationError) Cause

Cause function returns cause value.

func (DeleteRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteRequestValidationError) ErrorName

func (e DeleteRequestValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteRequestValidationError) Field

Field function returns field value.

func (DeleteRequestValidationError) Key

Key function returns key value.

func (DeleteRequestValidationError) Reason

Reason function returns reason value.

type DeleteResponse

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

func (*DeleteResponse) Descriptor deprecated

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

Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) ProtoReflect

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

func (*DeleteResponse) Reset

func (x *DeleteResponse) Reset()

func (*DeleteResponse) String

func (x *DeleteResponse) String() string

func (*DeleteResponse) Validate

func (m *DeleteResponse) Validate() error

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

func (m *DeleteResponse) ValidateAll() error

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

type DeleteResponseMultiError

type DeleteResponseMultiError []error

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

func (DeleteResponseMultiError) AllErrors

func (m DeleteResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteResponseMultiError) Error

func (m DeleteResponseMultiError) Error() string

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

type DeleteResponseValidationError

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

DeleteResponseValidationError is the validation error returned by DeleteResponse.Validate if the designated constraints aren't met.

func (DeleteResponseValidationError) Cause

Cause function returns cause value.

func (DeleteResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteResponseValidationError) ErrorName

func (e DeleteResponseValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteResponseValidationError) Field

Field function returns field value.

func (DeleteResponseValidationError) Key

Key function returns key value.

func (DeleteResponseValidationError) Reason

Reason function returns reason value.

type DiskInfoRequest

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

func (*DiskInfoRequest) Descriptor deprecated

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

Deprecated: Use DiskInfoRequest.ProtoReflect.Descriptor instead.

func (*DiskInfoRequest) ProtoMessage

func (*DiskInfoRequest) ProtoMessage()

func (*DiskInfoRequest) ProtoReflect

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

func (*DiskInfoRequest) Reset

func (x *DiskInfoRequest) Reset()

func (*DiskInfoRequest) String

func (x *DiskInfoRequest) String() string

func (*DiskInfoRequest) Validate

func (m *DiskInfoRequest) Validate() error

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

func (m *DiskInfoRequest) ValidateAll() error

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

type DiskInfoRequestMultiError

type DiskInfoRequestMultiError []error

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

func (DiskInfoRequestMultiError) AllErrors

func (m DiskInfoRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DiskInfoRequestMultiError) Error

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

type DiskInfoRequestValidationError

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

DiskInfoRequestValidationError is the validation error returned by DiskInfoRequest.Validate if the designated constraints aren't met.

func (DiskInfoRequestValidationError) Cause

Cause function returns cause value.

func (DiskInfoRequestValidationError) Error

Error satisfies the builtin error interface

func (DiskInfoRequestValidationError) ErrorName

func (e DiskInfoRequestValidationError) ErrorName() string

ErrorName returns error name.

func (DiskInfoRequestValidationError) Field

Field function returns field value.

func (DiskInfoRequestValidationError) Key

Key function returns key value.

func (DiskInfoRequestValidationError) Reason

Reason function returns reason value.

type DiskInfoResponse

type DiskInfoResponse struct {
	Usage         int64  `protobuf:"varint,1,opt,name=usage,proto3" json:"usage,omitempty"`
	HumanizeUsage string `protobuf:"bytes,2,opt,name=humanize_usage,json=humanizeUsage,proto3" json:"humanize_usage,omitempty"`
	// contains filtered or unexported fields
}

func (*DiskInfoResponse) Descriptor deprecated

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

Deprecated: Use DiskInfoResponse.ProtoReflect.Descriptor instead.

func (*DiskInfoResponse) GetHumanizeUsage

func (x *DiskInfoResponse) GetHumanizeUsage() string

func (*DiskInfoResponse) GetUsage

func (x *DiskInfoResponse) GetUsage() int64

func (*DiskInfoResponse) ProtoMessage

func (*DiskInfoResponse) ProtoMessage()

func (*DiskInfoResponse) ProtoReflect

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

func (*DiskInfoResponse) Reset

func (x *DiskInfoResponse) Reset()

func (*DiskInfoResponse) String

func (x *DiskInfoResponse) String() string

func (*DiskInfoResponse) Validate

func (m *DiskInfoResponse) Validate() error

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

func (m *DiskInfoResponse) ValidateAll() error

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

type DiskInfoResponseMultiError

type DiskInfoResponseMultiError []error

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

func (DiskInfoResponseMultiError) AllErrors

func (m DiskInfoResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DiskInfoResponseMultiError) Error

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

type DiskInfoResponseValidationError

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

DiskInfoResponseValidationError is the validation error returned by DiskInfoResponse.Validate if the designated constraints aren't met.

func (DiskInfoResponseValidationError) Cause

Cause function returns cause value.

func (DiskInfoResponseValidationError) Error

Error satisfies the builtin error interface

func (DiskInfoResponseValidationError) ErrorName

ErrorName returns error name.

func (DiskInfoResponseValidationError) Field

Field function returns field value.

func (DiskInfoResponseValidationError) Key

Key function returns key value.

func (DiskInfoResponseValidationError) Reason

Reason function returns reason value.

type FileClient

type FileClient interface {
	// 文件列表
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
	// records 文件信息
	ShowRecords(ctx context.Context, in *ShowRecordsRequest, opts ...grpc.CallOption) (*ShowRecordsResponse, error)
	// 删除文件
	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
	// DiskInfo 查看上传文件目录大小
	DiskInfo(ctx context.Context, in *DiskInfoRequest, opts ...grpc.CallOption) (*DiskInfoResponse, error)
	MaxUploadSize(ctx context.Context, in *MaxUploadSizeRequest, opts ...grpc.CallOption) (*MaxUploadSizeResponse, error)
}

FileClient is the client API for File service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewFileClient

func NewFileClient(cc grpc.ClientConnInterface) FileClient

type FileServer

type FileServer interface {
	// 文件列表
	List(context.Context, *ListRequest) (*ListResponse, error)
	// records 文件信息
	ShowRecords(context.Context, *ShowRecordsRequest) (*ShowRecordsResponse, error)
	// 删除文件
	Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
	// DiskInfo 查看上传文件目录大小
	DiskInfo(context.Context, *DiskInfoRequest) (*DiskInfoResponse, error)
	MaxUploadSize(context.Context, *MaxUploadSizeRequest) (*MaxUploadSizeResponse, error)
	// contains filtered or unexported methods
}

FileServer is the server API for File service. All implementations must embed UnimplementedFileServer for forward compatibility

type ListRequest

type ListRequest struct {
	Page           int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize       int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	WithoutDeleted bool  `protobuf:"varint,3,opt,name=without_deleted,json=withoutDeleted,proto3" json:"without_deleted,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetPage

func (x *ListRequest) GetPage() int64

func (*ListRequest) GetPageSize

func (x *ListRequest) GetPageSize() int64

func (*ListRequest) GetWithoutDeleted

func (x *ListRequest) GetWithoutDeleted() bool

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

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

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

func (*ListRequest) Validate

func (m *ListRequest) Validate() error

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

func (m *ListRequest) ValidateAll() error

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

type ListRequestMultiError

type ListRequestMultiError []error

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

func (ListRequestMultiError) AllErrors

func (m ListRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListRequestMultiError) Error

func (m ListRequestMultiError) Error() string

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

type ListRequestValidationError

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

ListRequestValidationError is the validation error returned by ListRequest.Validate if the designated constraints aren't met.

func (ListRequestValidationError) Cause

Cause function returns cause value.

func (ListRequestValidationError) Error

Error satisfies the builtin error interface

func (ListRequestValidationError) ErrorName

func (e ListRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListRequestValidationError) Field

Field function returns field value.

func (ListRequestValidationError) Key

Key function returns key value.

func (ListRequestValidationError) Reason

Reason function returns reason value.

type ListResponse

type ListResponse struct {
	Page     int64              `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int64              `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Items    []*types.FileModel `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"`
	Count    int64              `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResponse) Descriptor deprecated

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

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetCount

func (x *ListResponse) GetCount() int64

func (*ListResponse) GetItems

func (x *ListResponse) GetItems() []*types.FileModel

func (*ListResponse) GetPage

func (x *ListResponse) GetPage() int64

func (*ListResponse) GetPageSize

func (x *ListResponse) GetPageSize() int64

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect

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

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) String

func (x *ListResponse) String() string

func (*ListResponse) Validate

func (m *ListResponse) Validate() error

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

func (m *ListResponse) ValidateAll() error

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

type ListResponseMultiError

type ListResponseMultiError []error

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

func (ListResponseMultiError) AllErrors

func (m ListResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListResponseMultiError) Error

func (m ListResponseMultiError) Error() string

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

type ListResponseValidationError

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

ListResponseValidationError is the validation error returned by ListResponse.Validate if the designated constraints aren't met.

func (ListResponseValidationError) Cause

Cause function returns cause value.

func (ListResponseValidationError) Error

Error satisfies the builtin error interface

func (ListResponseValidationError) ErrorName

func (e ListResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ListResponseValidationError) Field

Field function returns field value.

func (ListResponseValidationError) Key

Key function returns key value.

func (ListResponseValidationError) Reason

Reason function returns reason value.

type MaxUploadSizeRequest

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

func (*MaxUploadSizeRequest) Descriptor deprecated

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

Deprecated: Use MaxUploadSizeRequest.ProtoReflect.Descriptor instead.

func (*MaxUploadSizeRequest) ProtoMessage

func (*MaxUploadSizeRequest) ProtoMessage()

func (*MaxUploadSizeRequest) ProtoReflect

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

func (*MaxUploadSizeRequest) Reset

func (x *MaxUploadSizeRequest) Reset()

func (*MaxUploadSizeRequest) String

func (x *MaxUploadSizeRequest) String() string

func (*MaxUploadSizeRequest) Validate

func (m *MaxUploadSizeRequest) Validate() error

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

func (m *MaxUploadSizeRequest) ValidateAll() error

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

type MaxUploadSizeRequestMultiError

type MaxUploadSizeRequestMultiError []error

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

func (MaxUploadSizeRequestMultiError) AllErrors

func (m MaxUploadSizeRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MaxUploadSizeRequestMultiError) Error

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

type MaxUploadSizeRequestValidationError

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

MaxUploadSizeRequestValidationError is the validation error returned by MaxUploadSizeRequest.Validate if the designated constraints aren't met.

func (MaxUploadSizeRequestValidationError) Cause

Cause function returns cause value.

func (MaxUploadSizeRequestValidationError) Error

Error satisfies the builtin error interface

func (MaxUploadSizeRequestValidationError) ErrorName

ErrorName returns error name.

func (MaxUploadSizeRequestValidationError) Field

Field function returns field value.

func (MaxUploadSizeRequestValidationError) Key

Key function returns key value.

func (MaxUploadSizeRequestValidationError) Reason

Reason function returns reason value.

type MaxUploadSizeResponse

type MaxUploadSizeResponse struct {
	HumanizeSize string `protobuf:"bytes,1,opt,name=humanize_size,json=humanizeSize,proto3" json:"humanize_size,omitempty"`
	Bytes        uint64 `protobuf:"varint,2,opt,name=bytes,proto3" json:"bytes,omitempty"`
	// contains filtered or unexported fields
}

func (*MaxUploadSizeResponse) Descriptor deprecated

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

Deprecated: Use MaxUploadSizeResponse.ProtoReflect.Descriptor instead.

func (*MaxUploadSizeResponse) GetBytes

func (x *MaxUploadSizeResponse) GetBytes() uint64

func (*MaxUploadSizeResponse) GetHumanizeSize

func (x *MaxUploadSizeResponse) GetHumanizeSize() string

func (*MaxUploadSizeResponse) ProtoMessage

func (*MaxUploadSizeResponse) ProtoMessage()

func (*MaxUploadSizeResponse) ProtoReflect

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

func (*MaxUploadSizeResponse) Reset

func (x *MaxUploadSizeResponse) Reset()

func (*MaxUploadSizeResponse) String

func (x *MaxUploadSizeResponse) String() string

func (*MaxUploadSizeResponse) Validate

func (m *MaxUploadSizeResponse) Validate() error

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

func (m *MaxUploadSizeResponse) ValidateAll() error

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

type MaxUploadSizeResponseMultiError

type MaxUploadSizeResponseMultiError []error

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

func (MaxUploadSizeResponseMultiError) AllErrors

func (m MaxUploadSizeResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MaxUploadSizeResponseMultiError) Error

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

type MaxUploadSizeResponseValidationError

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

MaxUploadSizeResponseValidationError is the validation error returned by MaxUploadSizeResponse.Validate if the designated constraints aren't met.

func (MaxUploadSizeResponseValidationError) Cause

Cause function returns cause value.

func (MaxUploadSizeResponseValidationError) Error

Error satisfies the builtin error interface

func (MaxUploadSizeResponseValidationError) ErrorName

ErrorName returns error name.

func (MaxUploadSizeResponseValidationError) Field

Field function returns field value.

func (MaxUploadSizeResponseValidationError) Key

Key function returns key value.

func (MaxUploadSizeResponseValidationError) Reason

Reason function returns reason value.

type ShowRecordsRequest

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

func (*ShowRecordsRequest) Descriptor deprecated

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

Deprecated: Use ShowRecordsRequest.ProtoReflect.Descriptor instead.

func (*ShowRecordsRequest) GetId

func (x *ShowRecordsRequest) GetId() int64

func (*ShowRecordsRequest) ProtoMessage

func (*ShowRecordsRequest) ProtoMessage()

func (*ShowRecordsRequest) ProtoReflect

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

func (*ShowRecordsRequest) Reset

func (x *ShowRecordsRequest) Reset()

func (*ShowRecordsRequest) String

func (x *ShowRecordsRequest) String() string

func (*ShowRecordsRequest) Validate

func (m *ShowRecordsRequest) Validate() error

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

func (m *ShowRecordsRequest) ValidateAll() error

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

type ShowRecordsRequestMultiError

type ShowRecordsRequestMultiError []error

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

func (ShowRecordsRequestMultiError) AllErrors

func (m ShowRecordsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ShowRecordsRequestMultiError) Error

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

type ShowRecordsRequestValidationError

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

ShowRecordsRequestValidationError is the validation error returned by ShowRecordsRequest.Validate if the designated constraints aren't met.

func (ShowRecordsRequestValidationError) Cause

Cause function returns cause value.

func (ShowRecordsRequestValidationError) Error

Error satisfies the builtin error interface

func (ShowRecordsRequestValidationError) ErrorName

ErrorName returns error name.

func (ShowRecordsRequestValidationError) Field

Field function returns field value.

func (ShowRecordsRequestValidationError) Key

Key function returns key value.

func (ShowRecordsRequestValidationError) Reason

Reason function returns reason value.

type ShowRecordsResponse

type ShowRecordsResponse struct {
	Items []string `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*ShowRecordsResponse) Descriptor deprecated

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

Deprecated: Use ShowRecordsResponse.ProtoReflect.Descriptor instead.

func (*ShowRecordsResponse) GetItems

func (x *ShowRecordsResponse) GetItems() []string

func (*ShowRecordsResponse) ProtoMessage

func (*ShowRecordsResponse) ProtoMessage()

func (*ShowRecordsResponse) ProtoReflect

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

func (*ShowRecordsResponse) Reset

func (x *ShowRecordsResponse) Reset()

func (*ShowRecordsResponse) String

func (x *ShowRecordsResponse) String() string

func (*ShowRecordsResponse) Validate

func (m *ShowRecordsResponse) Validate() error

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

func (m *ShowRecordsResponse) ValidateAll() error

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

type ShowRecordsResponseMultiError

type ShowRecordsResponseMultiError []error

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

func (ShowRecordsResponseMultiError) AllErrors

func (m ShowRecordsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ShowRecordsResponseMultiError) Error

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

type ShowRecordsResponseValidationError

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

ShowRecordsResponseValidationError is the validation error returned by ShowRecordsResponse.Validate if the designated constraints aren't met.

func (ShowRecordsResponseValidationError) Cause

Cause function returns cause value.

func (ShowRecordsResponseValidationError) Error

Error satisfies the builtin error interface

func (ShowRecordsResponseValidationError) ErrorName

ErrorName returns error name.

func (ShowRecordsResponseValidationError) Field

Field function returns field value.

func (ShowRecordsResponseValidationError) Key

Key function returns key value.

func (ShowRecordsResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedFileServer

type UnimplementedFileServer struct {
}

UnimplementedFileServer must be embedded to have forward compatible implementations.

func (UnimplementedFileServer) Delete

func (UnimplementedFileServer) DiskInfo

func (UnimplementedFileServer) List

func (UnimplementedFileServer) MaxUploadSize

func (UnimplementedFileServer) ShowRecords

type UnsafeFileServer

type UnsafeFileServer interface {
	// contains filtered or unexported methods
}

UnsafeFileServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FileServer will result in compilation errors.

Jump to

Keyboard shortcuts

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