v1

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Service_PageExport_FullMethodName     = "/export.Service/PageExport"
	Service_AddExport_FullMethodName      = "/export.Service/AddExport"
	Service_AddExportExcel_FullMethodName = "/export.Service/AddExportExcel"
	Service_DeleteExport_FullMethodName   = "/export.Service/DeleteExport"
)
View Source
const OperationServiceAddExport = "/export.Service/AddExport"
View Source
const OperationServiceAddExportExcel = "/export.Service/AddExportExcel"
View Source
const OperationServiceDeleteExport = "/export.Service/DeleteExport"
View Source
const OperationServicePageExport = "/export.Service/PageExport"

Variables

View Source
var File_resource_export_proto protoreflect.FileDescriptor
View Source
var File_resource_export_service_proto protoreflect.FileDescriptor
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "export.Service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PageExport",
			Handler:    _Service_PageExport_Handler,
		},
		{
			MethodName: "AddExport",
			Handler:    _Service_AddExport_Handler,
		},
		{
			MethodName: "AddExportExcel",
			Handler:    _Service_AddExportExcel_Handler,
		},
		{
			MethodName: "DeleteExport",
			Handler:    _Service_DeleteExport_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "resource_export_service.proto",
}

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

Functions

func RegisterServiceHTTPServer

func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)

func RegisterServiceServer

func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)

Types

type AddExportExcelReply

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

func (*AddExportExcelReply) Descriptor deprecated

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

Deprecated: Use AddExportExcelReply.ProtoReflect.Descriptor instead.

func (*AddExportExcelReply) GetId

func (x *AddExportExcelReply) GetId() uint32

func (*AddExportExcelReply) ProtoMessage

func (*AddExportExcelReply) ProtoMessage()

func (*AddExportExcelReply) ProtoReflect

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

func (*AddExportExcelReply) Reset

func (x *AddExportExcelReply) Reset()

func (*AddExportExcelReply) String

func (x *AddExportExcelReply) String() string

func (*AddExportExcelReply) Validate

func (m *AddExportExcelReply) Validate() error

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

func (m *AddExportExcelReply) ValidateAll() error

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

type AddExportExcelReplyMultiError

type AddExportExcelReplyMultiError []error

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

func (AddExportExcelReplyMultiError) AllErrors

func (m AddExportExcelReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddExportExcelReplyMultiError) Error

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

type AddExportExcelReplyValidationError

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

AddExportExcelReplyValidationError is the validation error returned by AddExportExcelReply.Validate if the designated constraints aren't met.

func (AddExportExcelReplyValidationError) Cause

Cause function returns cause value.

func (AddExportExcelReplyValidationError) Error

Error satisfies the builtin error interface

func (AddExportExcelReplyValidationError) ErrorName

ErrorName returns error name.

func (AddExportExcelReplyValidationError) Field

Field function returns field value.

func (AddExportExcelReplyValidationError) Key

Key function returns key value.

func (AddExportExcelReplyValidationError) Reason

Reason function returns reason value.

type AddExportExcelRequest

type AddExportExcelRequest struct {
	Name string                       `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Rows []*AddExportExcelRequest_Row `protobuf:"bytes,2,rep,name=rows,proto3" json:"rows,omitempty"`
	// contains filtered or unexported fields
}

func (*AddExportExcelRequest) Descriptor deprecated

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

Deprecated: Use AddExportExcelRequest.ProtoReflect.Descriptor instead.

func (*AddExportExcelRequest) GetName

func (x *AddExportExcelRequest) GetName() string

func (*AddExportExcelRequest) GetRows

func (*AddExportExcelRequest) ProtoMessage

func (*AddExportExcelRequest) ProtoMessage()

func (*AddExportExcelRequest) ProtoReflect

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

func (*AddExportExcelRequest) Reset

func (x *AddExportExcelRequest) Reset()

func (*AddExportExcelRequest) String

func (x *AddExportExcelRequest) String() string

func (*AddExportExcelRequest) Validate

func (m *AddExportExcelRequest) Validate() error

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

func (m *AddExportExcelRequest) ValidateAll() error

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

type AddExportExcelRequestMultiError

type AddExportExcelRequestMultiError []error

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

func (AddExportExcelRequestMultiError) AllErrors

func (m AddExportExcelRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddExportExcelRequestMultiError) Error

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

type AddExportExcelRequestValidationError

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

AddExportExcelRequestValidationError is the validation error returned by AddExportExcelRequest.Validate if the designated constraints aren't met.

func (AddExportExcelRequestValidationError) Cause

Cause function returns cause value.

func (AddExportExcelRequestValidationError) Error

Error satisfies the builtin error interface

func (AddExportExcelRequestValidationError) ErrorName

ErrorName returns error name.

func (AddExportExcelRequestValidationError) Field

Field function returns field value.

func (AddExportExcelRequestValidationError) Key

Key function returns key value.

func (AddExportExcelRequestValidationError) Reason

Reason function returns reason value.

type AddExportExcelRequest_Col

type AddExportExcelRequest_Col struct {
	Type  string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*AddExportExcelRequest_Col) Descriptor deprecated

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

Deprecated: Use AddExportExcelRequest_Col.ProtoReflect.Descriptor instead.

func (*AddExportExcelRequest_Col) GetType

func (x *AddExportExcelRequest_Col) GetType() string

func (*AddExportExcelRequest_Col) GetValue

func (x *AddExportExcelRequest_Col) GetValue() string

func (*AddExportExcelRequest_Col) ProtoMessage

func (*AddExportExcelRequest_Col) ProtoMessage()

func (*AddExportExcelRequest_Col) ProtoReflect

func (*AddExportExcelRequest_Col) Reset

func (x *AddExportExcelRequest_Col) Reset()

func (*AddExportExcelRequest_Col) String

func (x *AddExportExcelRequest_Col) String() string

func (*AddExportExcelRequest_Col) Validate

func (m *AddExportExcelRequest_Col) Validate() error

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

func (m *AddExportExcelRequest_Col) ValidateAll() error

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

type AddExportExcelRequest_ColMultiError

type AddExportExcelRequest_ColMultiError []error

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

func (AddExportExcelRequest_ColMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (AddExportExcelRequest_ColMultiError) Error

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

type AddExportExcelRequest_ColValidationError

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

AddExportExcelRequest_ColValidationError is the validation error returned by AddExportExcelRequest_Col.Validate if the designated constraints aren't met.

func (AddExportExcelRequest_ColValidationError) Cause

Cause function returns cause value.

func (AddExportExcelRequest_ColValidationError) Error

Error satisfies the builtin error interface

func (AddExportExcelRequest_ColValidationError) ErrorName

ErrorName returns error name.

func (AddExportExcelRequest_ColValidationError) Field

Field function returns field value.

func (AddExportExcelRequest_ColValidationError) Key

Key function returns key value.

func (AddExportExcelRequest_ColValidationError) Reason

Reason function returns reason value.

type AddExportExcelRequest_Row

type AddExportExcelRequest_Row struct {
	Cols []*AddExportExcelRequest_Col `protobuf:"bytes,1,rep,name=cols,proto3" json:"cols,omitempty"`
	// contains filtered or unexported fields
}

func (*AddExportExcelRequest_Row) Descriptor deprecated

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

Deprecated: Use AddExportExcelRequest_Row.ProtoReflect.Descriptor instead.

func (*AddExportExcelRequest_Row) GetCols

func (*AddExportExcelRequest_Row) ProtoMessage

func (*AddExportExcelRequest_Row) ProtoMessage()

func (*AddExportExcelRequest_Row) ProtoReflect

func (*AddExportExcelRequest_Row) Reset

func (x *AddExportExcelRequest_Row) Reset()

func (*AddExportExcelRequest_Row) String

func (x *AddExportExcelRequest_Row) String() string

func (*AddExportExcelRequest_Row) Validate

func (m *AddExportExcelRequest_Row) Validate() error

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

func (m *AddExportExcelRequest_Row) ValidateAll() error

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

type AddExportExcelRequest_RowMultiError

type AddExportExcelRequest_RowMultiError []error

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

func (AddExportExcelRequest_RowMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (AddExportExcelRequest_RowMultiError) Error

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

type AddExportExcelRequest_RowValidationError

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

AddExportExcelRequest_RowValidationError is the validation error returned by AddExportExcelRequest_Row.Validate if the designated constraints aren't met.

func (AddExportExcelRequest_RowValidationError) Cause

Cause function returns cause value.

func (AddExportExcelRequest_RowValidationError) Error

Error satisfies the builtin error interface

func (AddExportExcelRequest_RowValidationError) ErrorName

ErrorName returns error name.

func (AddExportExcelRequest_RowValidationError) Field

Field function returns field value.

func (AddExportExcelRequest_RowValidationError) Key

Key function returns key value.

func (AddExportExcelRequest_RowValidationError) Reason

Reason function returns reason value.

type AddExportReply

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

func (*AddExportReply) Descriptor deprecated

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

Deprecated: Use AddExportReply.ProtoReflect.Descriptor instead.

func (*AddExportReply) GetId

func (x *AddExportReply) GetId() uint32

func (*AddExportReply) ProtoMessage

func (*AddExportReply) ProtoMessage()

func (*AddExportReply) ProtoReflect

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

func (*AddExportReply) Reset

func (x *AddExportReply) Reset()

func (*AddExportReply) String

func (x *AddExportReply) String() string

func (*AddExportReply) Validate

func (m *AddExportReply) Validate() error

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

func (m *AddExportReply) ValidateAll() error

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

type AddExportReplyMultiError

type AddExportReplyMultiError []error

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

func (AddExportReplyMultiError) AllErrors

func (m AddExportReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddExportReplyMultiError) Error

func (m AddExportReplyMultiError) Error() string

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

type AddExportReplyValidationError

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

AddExportReplyValidationError is the validation error returned by AddExportReply.Validate if the designated constraints aren't met.

func (AddExportReplyValidationError) Cause

Cause function returns cause value.

func (AddExportReplyValidationError) Error

Error satisfies the builtin error interface

func (AddExportReplyValidationError) ErrorName

func (e AddExportReplyValidationError) ErrorName() string

ErrorName returns error name.

func (AddExportReplyValidationError) Field

Field function returns field value.

func (AddExportReplyValidationError) Key

Key function returns key value.

func (AddExportReplyValidationError) Reason

Reason function returns reason value.

type AddExportRequest

type AddExportRequest struct {
	Name  string                         `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Files []*AddExportRequest_ExportFile `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"`
	Ids   []uint32                       `protobuf:"varint,3,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*AddExportRequest) Descriptor deprecated

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

Deprecated: Use AddExportRequest.ProtoReflect.Descriptor instead.

func (*AddExportRequest) GetFiles

func (*AddExportRequest) GetIds

func (x *AddExportRequest) GetIds() []uint32

func (*AddExportRequest) GetName

func (x *AddExportRequest) GetName() string

func (*AddExportRequest) ProtoMessage

func (*AddExportRequest) ProtoMessage()

func (*AddExportRequest) ProtoReflect

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

func (*AddExportRequest) Reset

func (x *AddExportRequest) Reset()

func (*AddExportRequest) String

func (x *AddExportRequest) String() string

func (*AddExportRequest) Validate

func (m *AddExportRequest) Validate() error

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

func (m *AddExportRequest) ValidateAll() error

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

type AddExportRequestMultiError

type AddExportRequestMultiError []error

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

func (AddExportRequestMultiError) AllErrors

func (m AddExportRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddExportRequestMultiError) Error

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

type AddExportRequestValidationError

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

AddExportRequestValidationError is the validation error returned by AddExportRequest.Validate if the designated constraints aren't met.

func (AddExportRequestValidationError) Cause

Cause function returns cause value.

func (AddExportRequestValidationError) Error

Error satisfies the builtin error interface

func (AddExportRequestValidationError) ErrorName

ErrorName returns error name.

func (AddExportRequestValidationError) Field

Field function returns field value.

func (AddExportRequestValidationError) Key

Key function returns key value.

func (AddExportRequestValidationError) Reason

Reason function returns reason value.

type AddExportRequest_ExportFile

type AddExportRequest_ExportFile struct {
	Sha    string `protobuf:"bytes,1,opt,name=sha,proto3" json:"sha,omitempty"`
	Rename string `protobuf:"bytes,2,opt,name=rename,proto3" json:"rename,omitempty"`
	// contains filtered or unexported fields
}

func (*AddExportRequest_ExportFile) Descriptor deprecated

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

Deprecated: Use AddExportRequest_ExportFile.ProtoReflect.Descriptor instead.

func (*AddExportRequest_ExportFile) GetRename

func (x *AddExportRequest_ExportFile) GetRename() string

func (*AddExportRequest_ExportFile) GetSha

func (x *AddExportRequest_ExportFile) GetSha() string

func (*AddExportRequest_ExportFile) ProtoMessage

func (*AddExportRequest_ExportFile) ProtoMessage()

func (*AddExportRequest_ExportFile) ProtoReflect

func (*AddExportRequest_ExportFile) Reset

func (x *AddExportRequest_ExportFile) Reset()

func (*AddExportRequest_ExportFile) String

func (x *AddExportRequest_ExportFile) String() string

func (*AddExportRequest_ExportFile) Validate

func (m *AddExportRequest_ExportFile) Validate() error

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

func (m *AddExportRequest_ExportFile) ValidateAll() error

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

type AddExportRequest_ExportFileMultiError

type AddExportRequest_ExportFileMultiError []error

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

func (AddExportRequest_ExportFileMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (AddExportRequest_ExportFileMultiError) Error

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

type AddExportRequest_ExportFileValidationError

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

AddExportRequest_ExportFileValidationError is the validation error returned by AddExportRequest_ExportFile.Validate if the designated constraints aren't met.

func (AddExportRequest_ExportFileValidationError) Cause

Cause function returns cause value.

func (AddExportRequest_ExportFileValidationError) Error

Error satisfies the builtin error interface

func (AddExportRequest_ExportFileValidationError) ErrorName

ErrorName returns error name.

func (AddExportRequest_ExportFileValidationError) Field

Field function returns field value.

func (AddExportRequest_ExportFileValidationError) Key

Key function returns key value.

func (AddExportRequest_ExportFileValidationError) Reason

Reason function returns reason value.

type DeleteExportRequest

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

func (*DeleteExportRequest) Descriptor deprecated

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

Deprecated: Use DeleteExportRequest.ProtoReflect.Descriptor instead.

func (*DeleteExportRequest) GetId

func (x *DeleteExportRequest) GetId() uint32

func (*DeleteExportRequest) ProtoMessage

func (*DeleteExportRequest) ProtoMessage()

func (*DeleteExportRequest) ProtoReflect

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

func (*DeleteExportRequest) Reset

func (x *DeleteExportRequest) Reset()

func (*DeleteExportRequest) String

func (x *DeleteExportRequest) String() string

func (*DeleteExportRequest) Validate

func (m *DeleteExportRequest) Validate() error

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

func (m *DeleteExportRequest) ValidateAll() error

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

type DeleteExportRequestMultiError

type DeleteExportRequestMultiError []error

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

func (DeleteExportRequestMultiError) AllErrors

func (m DeleteExportRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteExportRequestMultiError) Error

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

type DeleteExportRequestValidationError

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

DeleteExportRequestValidationError is the validation error returned by DeleteExportRequest.Validate if the designated constraints aren't met.

func (DeleteExportRequestValidationError) Cause

Cause function returns cause value.

func (DeleteExportRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteExportRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteExportRequestValidationError) Field

Field function returns field value.

func (DeleteExportRequestValidationError) Key

Key function returns key value.

func (DeleteExportRequestValidationError) Reason

Reason function returns reason value.

type Export

type Export struct {
	Id        uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Size      uint32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	Src       string `protobuf:"bytes,4,opt,name=src,proto3" json:"src,omitempty"`
	Version   string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`
	Reason    string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"`
	Status    string `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"`
	CreatedAt uint32 `protobuf:"varint,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt uint32 `protobuf:"varint,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Export) Descriptor deprecated

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

Deprecated: Use Export.ProtoReflect.Descriptor instead.

func (*Export) GetCreatedAt

func (x *Export) GetCreatedAt() uint32

func (*Export) GetId

func (x *Export) GetId() uint32

func (*Export) GetName

func (x *Export) GetName() string

func (*Export) GetReason

func (x *Export) GetReason() string

func (*Export) GetSize

func (x *Export) GetSize() uint32

func (*Export) GetSrc

func (x *Export) GetSrc() string

func (*Export) GetStatus

func (x *Export) GetStatus() string

func (*Export) GetUpdatedAt

func (x *Export) GetUpdatedAt() uint32

func (*Export) GetVersion

func (x *Export) GetVersion() string

func (*Export) ProtoMessage

func (*Export) ProtoMessage()

func (*Export) ProtoReflect

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

func (*Export) Reset

func (x *Export) Reset()

func (*Export) String

func (x *Export) String() string

func (*Export) Validate

func (m *Export) Validate() error

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

func (m *Export) ValidateAll() error

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

type ExportMultiError

type ExportMultiError []error

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

func (ExportMultiError) AllErrors

func (m ExportMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ExportMultiError) Error

func (m ExportMultiError) Error() string

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

type ExportValidationError

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

ExportValidationError is the validation error returned by Export.Validate if the designated constraints aren't met.

func (ExportValidationError) Cause

func (e ExportValidationError) Cause() error

Cause function returns cause value.

func (ExportValidationError) Error

func (e ExportValidationError) Error() string

Error satisfies the builtin error interface

func (ExportValidationError) ErrorName

func (e ExportValidationError) ErrorName() string

ErrorName returns error name.

func (ExportValidationError) Field

func (e ExportValidationError) Field() string

Field function returns field value.

func (ExportValidationError) Key

func (e ExportValidationError) Key() bool

Key function returns key value.

func (ExportValidationError) Reason

func (e ExportValidationError) Reason() string

Reason function returns reason value.

type PageExportReply

type PageExportReply struct {
	List  []*Export `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	Total *uint32   `protobuf:"varint,2,opt,name=total,proto3,oneof" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*PageExportReply) Descriptor deprecated

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

Deprecated: Use PageExportReply.ProtoReflect.Descriptor instead.

func (*PageExportReply) GetList

func (x *PageExportReply) GetList() []*Export

func (*PageExportReply) GetTotal

func (x *PageExportReply) GetTotal() uint32

func (*PageExportReply) ProtoMessage

func (*PageExportReply) ProtoMessage()

func (*PageExportReply) ProtoReflect

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

func (*PageExportReply) Reset

func (x *PageExportReply) Reset()

func (*PageExportReply) String

func (x *PageExportReply) String() string

func (*PageExportReply) Validate

func (m *PageExportReply) Validate() error

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

func (m *PageExportReply) ValidateAll() error

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

type PageExportReplyMultiError

type PageExportReplyMultiError []error

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

func (PageExportReplyMultiError) AllErrors

func (m PageExportReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PageExportReplyMultiError) Error

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

type PageExportReplyValidationError

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

PageExportReplyValidationError is the validation error returned by PageExportReply.Validate if the designated constraints aren't met.

func (PageExportReplyValidationError) Cause

Cause function returns cause value.

func (PageExportReplyValidationError) Error

Error satisfies the builtin error interface

func (PageExportReplyValidationError) ErrorName

func (e PageExportReplyValidationError) ErrorName() string

ErrorName returns error name.

func (PageExportReplyValidationError) Field

Field function returns field value.

func (PageExportReplyValidationError) Key

Key function returns key value.

func (PageExportReplyValidationError) Reason

Reason function returns reason value.

type PageExportRequest

type PageExportRequest struct {
	Page     uint32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// contains filtered or unexported fields
}

func (*PageExportRequest) Descriptor deprecated

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

Deprecated: Use PageExportRequest.ProtoReflect.Descriptor instead.

func (*PageExportRequest) GetPage

func (x *PageExportRequest) GetPage() uint32

func (*PageExportRequest) GetPageSize

func (x *PageExportRequest) GetPageSize() uint32

func (*PageExportRequest) ProtoMessage

func (*PageExportRequest) ProtoMessage()

func (*PageExportRequest) ProtoReflect

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

func (*PageExportRequest) Reset

func (x *PageExportRequest) Reset()

func (*PageExportRequest) String

func (x *PageExportRequest) String() string

func (*PageExportRequest) Validate

func (m *PageExportRequest) Validate() error

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

func (m *PageExportRequest) ValidateAll() error

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

type PageExportRequestMultiError

type PageExportRequestMultiError []error

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

func (PageExportRequestMultiError) AllErrors

func (m PageExportRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PageExportRequestMultiError) Error

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

type PageExportRequestValidationError

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

PageExportRequestValidationError is the validation error returned by PageExportRequest.Validate if the designated constraints aren't met.

func (PageExportRequestValidationError) Cause

Cause function returns cause value.

func (PageExportRequestValidationError) Error

Error satisfies the builtin error interface

func (PageExportRequestValidationError) ErrorName

ErrorName returns error name.

func (PageExportRequestValidationError) Field

Field function returns field value.

func (PageExportRequestValidationError) Key

Key function returns key value.

func (PageExportRequestValidationError) Reason

Reason function returns reason value.

type ServiceClient

type ServiceClient interface {
	PageExport(ctx context.Context, in *PageExportRequest, opts ...grpc.CallOption) (*PageExportReply, error)
	AddExport(ctx context.Context, in *AddExportRequest, opts ...grpc.CallOption) (*AddExportReply, error)
	AddExportExcel(ctx context.Context, in *AddExportExcelRequest, opts ...grpc.CallOption) (*AddExportExcelReply, error)
	DeleteExport(ctx context.Context, in *DeleteExportRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

ServiceClient is the client API for Service service.

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

func NewServiceClient

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceHTTPClient

type ServiceHTTPClient interface {
	AddExport(ctx context.Context, req *AddExportRequest, opts ...http.CallOption) (rsp *AddExportReply, err error)
	AddExportExcel(ctx context.Context, req *AddExportExcelRequest, opts ...http.CallOption) (rsp *AddExportExcelReply, err error)
	DeleteExport(ctx context.Context, req *DeleteExportRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	PageExport(ctx context.Context, req *PageExportRequest, opts ...http.CallOption) (rsp *PageExportReply, err error)
}

func NewServiceHTTPClient

func NewServiceHTTPClient(client *http.Client) ServiceHTTPClient

type ServiceHTTPClientImpl

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

func (*ServiceHTTPClientImpl) AddExport

func (*ServiceHTTPClientImpl) AddExportExcel

func (*ServiceHTTPClientImpl) DeleteExport

func (*ServiceHTTPClientImpl) PageExport

type ServiceServer

type ServiceServer interface {
	PageExport(context.Context, *PageExportRequest) (*PageExportReply, error)
	AddExport(context.Context, *AddExportRequest) (*AddExportReply, error)
	AddExportExcel(context.Context, *AddExportExcelRequest) (*AddExportExcelReply, error)
	DeleteExport(context.Context, *DeleteExportRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceServer) AddExport

func (UnimplementedServiceServer) AddExportExcel

func (UnimplementedServiceServer) DeleteExport

func (UnimplementedServiceServer) PageExport

type UnsafeServiceServer

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

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

Jump to

Keyboard shortcuts

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