Documentation
¶
Index ¶
- Constants
- Variables
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetContent() []*Row
- func (x *Response) GetName() string
- func (x *Response) GetTitle() *Row
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type Row
Constants ¶
View Source
const Name = "csv"
Variables ¶
View Source
var (
ErrInvalid = errors.New("not csv resp")
)
View Source
var File_csv_csv_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct { // csv 名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // csv 列名 Title *Row `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` // csv 内容 Content []*Row `protobuf:"bytes,4,rep,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
返回值
func (*Response) Descriptor
deprecated
func (*Response) GetContent ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type Row ¶
type Row struct { // 单元 Cell []string `protobuf:"bytes,1,rep,name=cell,proto3" json:"cell,omitempty"` // contains filtered or unexported fields }
行
func (*Row) Descriptor
deprecated
func (*Row) ProtoMessage ¶
func (*Row) ProtoMessage()
func (*Row) ProtoReflect ¶
func (x *Row) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.