Documentation ¶
Index ¶
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetGroup() []*Group
- func (x *Config) GetIgnore() []string
- func (p *Config) IsIgnore(path string) bool
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type Group
- type Meta
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Meta_name = map[int32]string{ 0: "Unknown", 1: "Image", 2: "Video", 3: "Audio", 4: "Archive", 5: "Documents", 6: "Font", 7: "Application", 8: "Java", 9: "Golang", 10: "JavaScript", } Meta_value = map[string]int32{ "Unknown": 0, "Image": 1, "Video": 2, "Audio": 3, "Archive": 4, "Documents": 5, "Font": 6, "Application": 7, "Java": 8, "Golang": 9, "JavaScript": 10, } )
Enum value maps for Meta.
View Source
var File_pb_config_proto protoreflect.FileDescriptor
View Source
var File_pb_group_proto protoreflect.FileDescriptor
View Source
var File_pb_meta_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Group []*Group `protobuf:"bytes,1,rep,name=group,proto3" json:"group,omitempty"` Ignore []string `protobuf:"bytes,2,rep,name=ignore,proto3" json:"ignore,omitempty"` // contains filtered or unexported fields }
Config 配置信息.
func (*Config) Descriptor
deprecated
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type Group ¶
type Group struct { Watch string `protobuf:"bytes,1,opt,name=watch,proto3" json:"watch,omitempty"` Meta map[string]string `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
Group 分组.
func (*Group) Descriptor
deprecated
func (*Group) ProtoMessage ¶
func (*Group) ProtoMessage()
func (*Group) ProtoReflect ¶
func (x *Group) ProtoReflect() protoreflect.Message
type Meta ¶
type Meta int32
Meta 模型.
func GetMetaByExt ¶
func GetMetaByReader ¶
func GetMetaByReader(readCloser io.ReadCloser) (Meta, error)
func (Meta) Descriptor ¶
func (Meta) Descriptor() protoreflect.EnumDescriptor
func (Meta) EnumDescriptor
deprecated
func (Meta) Number ¶
func (x Meta) Number() protoreflect.EnumNumber
func (Meta) Type ¶
func (Meta) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.