Documentation ¶
Overview ¶
Package model is a generated protocol buffer package.
It is generated from these files:
model.proto
It has these top-level messages:
GrayMatch
Index ¶
- Variables
- func CountGrayMatchByWhere(whereCond string, args ...interface{}) (int64, error)
- func DeleteGrayMatchByUri(uri string, tx ...*sqlx.Tx) error
- func GetDB() *mysql.DB
- func GetGrayMatchDB() *mysql.CacheableDB
- func GetRedis() *redis.Client
- func Init(dbConfig mysql.Config, redisConfig redis.Config) error
- func UpdateGrayMatchByUri(_g *GrayMatch, tx ...*sqlx.Tx) error
- func UpsertGrayMatch(_g *GrayMatch, tx ...*sqlx.Tx) error
- type GrayMatch
- func (*GrayMatch) Descriptor() ([]byte, []int)
- func (m *GrayMatch) GetCreatedAt() int64
- func (m *GrayMatch) GetRegexp() string
- func (m *GrayMatch) GetUpdatedAt() int64
- func (m *GrayMatch) GetUri() string
- func (m *GrayMatch) Marshal() (dAtA []byte, err error)
- func (m *GrayMatch) MarshalTo(dAtA []byte) (int, error)
- func (*GrayMatch) ProtoMessage()
- func (m *GrayMatch) Reset()
- func (m *GrayMatch) Size() (n int)
- func (m *GrayMatch) String() string
- func (*GrayMatch) TableName() string
- func (m *GrayMatch) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthModel = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowModel = fmt.Errorf("proto: integer overflow") )
Functions ¶
func CountGrayMatchByWhere ¶
CountGrayMatchByWhere count GrayMatch data number from database by WHERE condition.
func DeleteGrayMatchByUri ¶
DeleteGrayMatchByUri delete a GrayMatch data in database by id.
func GetGrayMatchDB ¶
func GetGrayMatchDB() *mysql.CacheableDB
GetGrayMatchDB returns the GrayMatch DB handler.
func UpdateGrayMatchByUri ¶
UpdateGrayMatchByUri update the GrayMatch data in database by id.
Types ¶
type GrayMatch ¶
type GrayMatch struct { Uri string `protobuf:"bytes,1,opt,name=Uri,proto3" json:"uri"` Regexp string `protobuf:"bytes,2,opt,name=Regexp,proto3" json:"regexp"` CreatedAt int64 `protobuf:"varint,3,opt,name=CreatedAt,proto3" json:"created_at"` UpdatedAt int64 `protobuf:"varint,4,opt,name=UpdatedAt,proto3" json:"updated_at"` }
GrayMatch
func GetGrayMatchByUri ¶
GetGrayMatchByUri query a GrayMatch data from database by id. If @reply bool=false error=nil, means the data is not exist.
func GetGrayMatchByWhere ¶
GetGrayMatchByWhere query a GrayMatch data from database by WHERE condition. If @reply bool=false error=nil, means the data is not exist.
func SelectGrayMatchByWhere ¶
SelectGrayMatchByWhere query some GrayMatch data from database by WHERE condition.
func (*GrayMatch) Descriptor ¶
func (*GrayMatch) GetCreatedAt ¶
func (*GrayMatch) GetUpdatedAt ¶
func (*GrayMatch) ProtoMessage ¶
func (*GrayMatch) ProtoMessage()