Documentation ¶
Overview ¶
====================================================
# Copyright (C)2019 All rights reserved. # # Author : domchan # Email : 814172254@qq.com # File Name : db.go # Created : 2019/1/16 13:47 # Last Modified : 2019/1/16 13:47 # Describe : # # ====================================================
====================================================
# Copyright (C)2019 All rights reserved. # # Author : domchan # Email : 814172254@qq.com # File Name : meta.go # Created : 2019/1/28 13:26 # Last Modified : 2019/1/28 13:26 # Describe : # # ====================================================
Index ¶
- Constants
- Variables
- type DbMsg
- func (*DbMsg) Descriptor() ([]byte, []int)
- func (m *DbMsg) GetArguments() string
- func (m *DbMsg) GetContent() string
- func (m *DbMsg) GetCreatedAt() string
- func (m *DbMsg) GetId() string
- func (m *DbMsg) GetReason() string
- func (m *DbMsg) GetReserved() string
- func (m *DbMsg) GetResultStatus() Result
- func (m *DbMsg) GetSendTime() string
- func (m *DbMsg) GetSendTo() string
- func (m *DbMsg) GetServer() Server
- func (m *DbMsg) GetStatus() Status
- func (m *DbMsg) GetSubId() string
- func (m *DbMsg) GetTemplate() string
- func (m *DbMsg) GetTryNum() int32
- func (m *DbMsg) GetType() Type
- func (m *DbMsg) GetUpdatedAt() string
- func (m *DbMsg) GetVersion() int32
- func (m *DbMsg) Marshal() (dAtA []byte, err error)
- func (m *DbMsg) MarshalTo(dAtA []byte) (int, error)
- func (*DbMsg) ProtoMessage()
- func (m *DbMsg) Reset()
- func (d *DbMsg) SetArguments(s string)
- func (d *DbMsg) SetContent(s string)
- func (d *DbMsg) SetCreatedAt(s string)
- func (d *DbMsg) SetReason(s string)
- func (m *DbMsg) SetResult(s Result)
- func (d *DbMsg) SetSendTime(s string)
- func (m *DbMsg) SetSendTo(s string)
- func (m *DbMsg) SetStatus(s Status)
- func (d *DbMsg) SetTemplate(s string)
- func (d *DbMsg) SetTryNum(s int32)
- func (d *DbMsg) SetUpdatedAt(s string)
- func (d *DbMsg) SetVersion(s int32)
- func (m *DbMsg) Size() (n int)
- func (m *DbMsg) String() string
- func (m *DbMsg) Unmarshal(dAtA []byte) error
- func (m *DbMsg) XXX_DiscardUnknown()
- func (m *DbMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DbMsg) XXX_Merge(src proto.Message)
- func (m *DbMsg) XXX_Size() int
- func (m *DbMsg) XXX_Unmarshal(b []byte) error
- type MsgProducer
- func (m *MsgProducer) Delay() int64
- func (*MsgProducer) Descriptor() ([]byte, []int)
- func (m *MsgProducer) GetArguments() string
- func (m *MsgProducer) GetId() string
- func (m *MsgProducer) GetReserved() string
- func (m *MsgProducer) GetSendTime() string
- func (m *MsgProducer) GetSendTo() string
- func (m *MsgProducer) GetServer() int32
- func (m *MsgProducer) GetSubId() string
- func (m *MsgProducer) GetTemplate() string
- func (m *MsgProducer) GetType() int32
- func (m *MsgProducer) GetXUtcSendStamp() int64
- func (m *MsgProducer) Marshal() (dAtA []byte, err error)
- func (m *MsgProducer) MarshalTo(dAtA []byte) (int, error)
- func (*MsgProducer) ProtoMessage()
- func (m *MsgProducer) Reset()
- func (m *MsgProducer) SetSendTo(s string)
- func (m *MsgProducer) Size() (n int)
- func (m *MsgProducer) String() string
- func (m *MsgProducer) Transfer(setID bool)
- func (m *MsgProducer) Unmarshal(dAtA []byte) error
- func (m *MsgProducer) ValidateEdit() error
- func (m *MsgProducer) Validated() error
- func (m *MsgProducer) XXX_DiscardUnknown()
- func (m *MsgProducer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MsgProducer) XXX_Merge(src proto.Message)
- func (m *MsgProducer) XXX_Size() int
- func (m *MsgProducer) XXX_Unmarshal(b []byte) error
- type Result
- type Server
- type Status
- type Type
Constants ¶
View Source
const (
ISO8601Layout = "2006-01-02T15:04:05Z07:00"
)
Variables ¶
View Source
var ( ErrInvalidLengthMeta = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMeta = fmt.Errorf("proto: integer overflow") )
View Source
var Result_name = map[int32]string{
0: "Success",
1: "Fail",
}
View Source
var Result_value = map[string]int32{
"Success": 0,
"Fail": 1,
}
View Source
var Server_name = map[int32]string{
0: "AliYun",
1: "ExMail",
}
View Source
var Server_value = map[string]int32{
"AliYun": 0,
"ExMail": 1,
}
View Source
var Status_name = map[int32]string{
0: "Wait",
1: "Cancel",
2: "Final",
}
View Source
var Status_value = map[string]int32{
"Wait": 0,
"Cancel": 1,
"Final": 2,
}
View Source
var Type_name = map[int32]string{
0: "Sms",
1: "WeChat",
2: "Email",
}
View Source
var Type_value = map[string]int32{
"Sms": 0,
"WeChat": 1,
"Email": 2,
}
Functions ¶
This section is empty.
Types ¶
type DbMsg ¶
type DbMsg struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // @inject_tag: json:"sub_id,omitempty" db:"sub_id" SubId string `protobuf:"bytes,2,opt,name=subId,proto3" json:"sub_id,omitempty" db:"sub_id"` // @inject_tag: json:"send_to,omitempty" db:"send_to" SendTo string `protobuf:"bytes,3,opt,name=sendTo,proto3" json:"send_to,omitempty" db:"send_to"` Type Type `protobuf:"varint,4,opt,name=type,proto3,enum=meta.Type" json:"type,omitempty"` Server Server `protobuf:"varint,5,opt,name=server,proto3,enum=meta.Server" json:"server,omitempty"` Template string `protobuf:"bytes,6,opt,name=template,proto3" json:"template,omitempty"` Arguments string `protobuf:"bytes,7,opt,name=arguments,proto3" json:"arguments,omitempty"` Content string `protobuf:"bytes,8,opt,name=content,proto3" json:"content,omitempty"` Reserved string `protobuf:"bytes,9,opt,name=reserved,proto3" json:"reserved,omitempty"` // @inject_tag: json:"send_time,omitempty" db:"send_time" SendTime string `protobuf:"bytes,10,opt,name=sendTime,proto3" json:"send_time,omitempty" db:"send_time"` // @inject_tag: json:"try_num,omitempty" db:"try_num" TryNum int32 `protobuf:"varint,11,opt,name=tryNum,proto3" json:"try_num,omitempty" db:"try_num"` Status Status `protobuf:"varint,12,opt,name=status,proto3,enum=meta.Status" json:"status,omitempty"` // @inject_tag: json:"result_status,omitempty" db:"result_status" ResultStatus Result `protobuf:"varint,13,opt,name=resultStatus,proto3,enum=meta.Result" json:"result_status,omitempty" db:"result_status"` Reason string `protobuf:"bytes,14,opt,name=reason,proto3" json:"reason,omitempty"` // @inject_tag: json:"created_at,omitempty" db:"created_at" CreatedAt string `protobuf:"bytes,15,opt,name=createdAt,proto3" json:"created_at,omitempty" db:"created_at"` // @inject_tag: json:"updated_at,omitempty" db:"updated_at" UpdatedAt string `protobuf:"bytes,16,opt,name=updatedAt,proto3" json:"updated_at,omitempty" db:"updated_at"` // @inject_tag: json:"-" Version int32 `protobuf:"varint,17,opt,name=version,proto3" json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DbMsg) Descriptor ¶
func (*DbMsg) GetArguments ¶
func (*DbMsg) GetContent ¶
func (*DbMsg) GetCreatedAt ¶
func (*DbMsg) GetReserved ¶
func (*DbMsg) GetResultStatus ¶
func (*DbMsg) GetSendTime ¶
func (*DbMsg) GetTemplate ¶
func (*DbMsg) GetUpdatedAt ¶
func (*DbMsg) GetVersion ¶
func (*DbMsg) ProtoMessage ¶
func (*DbMsg) ProtoMessage()
func (*DbMsg) SetArguments ¶
func (*DbMsg) SetContent ¶
func (*DbMsg) SetCreatedAt ¶
func (*DbMsg) SetSendTime ¶
func (*DbMsg) SetTemplate ¶
func (*DbMsg) SetUpdatedAt ¶
func (*DbMsg) SetVersion ¶
func (*DbMsg) XXX_DiscardUnknown ¶
func (m *DbMsg) XXX_DiscardUnknown()
func (*DbMsg) XXX_Marshal ¶
func (*DbMsg) XXX_Unmarshal ¶
type MsgProducer ¶
type MsgProducer struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // @inject_tag: json:"sub_id,omitempty"" SubId string `protobuf:"bytes,2,opt,name=subId,proto3" json:"sub_id,omitempty"` // @inject_tag: json:"send_to,omitempty" SendTo string `protobuf:"bytes,3,opt,name=sendTo,proto3" json:"send_to,omitempty"` Template string `protobuf:"bytes,4,opt,name=template,proto3" json:"template,omitempty"` Arguments string `protobuf:"bytes,5,opt,name=arguments,proto3" json:"arguments,omitempty"` // @inject_tag: json:"send_time,omitempty" SendTime string `protobuf:"bytes,6,opt,name=sendTime,proto3" json:"send_time,omitempty"` Server int32 `protobuf:"varint,7,opt,name=server,proto3" json:"server,omitempty"` Type int32 `protobuf:"varint,8,opt,name=type,proto3" json:"type,omitempty"` // 每种消息类型的预留字段 // sms: signName // email: title // weChat: url Reserved string `protobuf:"bytes,9,opt,name=reserved,proto3" json:"reserved,omitempty"` // @inject_tag: json:"-" XUtcSendStamp int64 `protobuf:"varint,10,opt,name=_utcSendStamp,json=UtcSendStamp,proto3" json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MsgProducer) Descriptor ¶
func (*MsgProducer) Descriptor() ([]byte, []int)
func (*MsgProducer) GetArguments ¶
func (m *MsgProducer) GetArguments() string
func (*MsgProducer) GetId ¶
func (m *MsgProducer) GetId() string
func (*MsgProducer) GetReserved ¶
func (m *MsgProducer) GetReserved() string
func (*MsgProducer) GetSendTime ¶
func (m *MsgProducer) GetSendTime() string
func (*MsgProducer) GetSendTo ¶
func (m *MsgProducer) GetSendTo() string
func (*MsgProducer) GetServer ¶
func (m *MsgProducer) GetServer() int32
func (*MsgProducer) GetSubId ¶
func (m *MsgProducer) GetSubId() string
func (*MsgProducer) GetTemplate ¶
func (m *MsgProducer) GetTemplate() string
func (*MsgProducer) GetType ¶
func (m *MsgProducer) GetType() int32
func (*MsgProducer) GetXUtcSendStamp ¶
func (m *MsgProducer) GetXUtcSendStamp() int64
func (*MsgProducer) Marshal ¶
func (m *MsgProducer) Marshal() (dAtA []byte, err error)
func (*MsgProducer) ProtoMessage ¶
func (*MsgProducer) ProtoMessage()
func (*MsgProducer) Reset ¶
func (m *MsgProducer) Reset()
func (*MsgProducer) SetSendTo ¶
func (m *MsgProducer) SetSendTo(s string)
func (*MsgProducer) Size ¶
func (m *MsgProducer) Size() (n int)
func (*MsgProducer) String ¶
func (m *MsgProducer) String() string
func (*MsgProducer) Unmarshal ¶
func (m *MsgProducer) Unmarshal(dAtA []byte) error
func (*MsgProducer) ValidateEdit ¶
func (m *MsgProducer) ValidateEdit() error
func (*MsgProducer) XXX_DiscardUnknown ¶
func (m *MsgProducer) XXX_DiscardUnknown()
func (*MsgProducer) XXX_Marshal ¶
func (m *MsgProducer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgProducer) XXX_Merge ¶
func (dst *MsgProducer) XXX_Merge(src proto.Message)
func (*MsgProducer) XXX_Size ¶
func (m *MsgProducer) XXX_Size() int
func (*MsgProducer) XXX_Unmarshal ¶
func (m *MsgProducer) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.