meta

package
v0.0.0-...-3d0adf2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2019 License: MIT Imports: 9 Imported by: 0

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

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) Descriptor() ([]byte, []int)

func (*DbMsg) GetArguments

func (m *DbMsg) GetArguments() string

func (*DbMsg) GetContent

func (m *DbMsg) GetContent() string

func (*DbMsg) GetCreatedAt

func (m *DbMsg) GetCreatedAt() string

func (*DbMsg) GetId

func (m *DbMsg) GetId() string

func (*DbMsg) GetReason

func (m *DbMsg) GetReason() string

func (*DbMsg) GetReserved

func (m *DbMsg) GetReserved() string

func (*DbMsg) GetResultStatus

func (m *DbMsg) GetResultStatus() Result

func (*DbMsg) GetSendTime

func (m *DbMsg) GetSendTime() string

func (*DbMsg) GetSendTo

func (m *DbMsg) GetSendTo() string

func (*DbMsg) GetServer

func (m *DbMsg) GetServer() Server

func (*DbMsg) GetStatus

func (m *DbMsg) GetStatus() Status

func (*DbMsg) GetSubId

func (m *DbMsg) GetSubId() string

func (*DbMsg) GetTemplate

func (m *DbMsg) GetTemplate() string

func (*DbMsg) GetTryNum

func (m *DbMsg) GetTryNum() int32

func (*DbMsg) GetType

func (m *DbMsg) GetType() Type

func (*DbMsg) GetUpdatedAt

func (m *DbMsg) GetUpdatedAt() string

func (*DbMsg) GetVersion

func (m *DbMsg) GetVersion() int32

func (*DbMsg) Marshal

func (m *DbMsg) Marshal() (dAtA []byte, err error)

func (*DbMsg) MarshalTo

func (m *DbMsg) MarshalTo(dAtA []byte) (int, error)

func (*DbMsg) ProtoMessage

func (*DbMsg) ProtoMessage()

func (*DbMsg) Reset

func (m *DbMsg) Reset()

func (*DbMsg) SetArguments

func (d *DbMsg) SetArguments(s string)

func (*DbMsg) SetContent

func (d *DbMsg) SetContent(s string)

func (*DbMsg) SetCreatedAt

func (d *DbMsg) SetCreatedAt(s string)

func (*DbMsg) SetReason

func (d *DbMsg) SetReason(s string)

func (*DbMsg) SetResult

func (m *DbMsg) SetResult(s Result)

func (*DbMsg) SetSendTime

func (d *DbMsg) SetSendTime(s string)

func (*DbMsg) SetSendTo

func (m *DbMsg) SetSendTo(s string)

func (*DbMsg) SetStatus

func (m *DbMsg) SetStatus(s Status)

func (*DbMsg) SetTemplate

func (d *DbMsg) SetTemplate(s string)

func (*DbMsg) SetTryNum

func (d *DbMsg) SetTryNum(s int32)

func (*DbMsg) SetUpdatedAt

func (d *DbMsg) SetUpdatedAt(s string)

func (*DbMsg) SetVersion

func (d *DbMsg) SetVersion(s int32)

func (*DbMsg) Size

func (m *DbMsg) Size() (n int)

func (*DbMsg) String

func (m *DbMsg) String() string

func (*DbMsg) Unmarshal

func (m *DbMsg) Unmarshal(dAtA []byte) error

func (*DbMsg) XXX_DiscardUnknown

func (m *DbMsg) XXX_DiscardUnknown()

func (*DbMsg) XXX_Marshal

func (m *DbMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DbMsg) XXX_Merge

func (dst *DbMsg) XXX_Merge(src proto.Message)

func (*DbMsg) XXX_Size

func (m *DbMsg) XXX_Size() int

func (*DbMsg) XXX_Unmarshal

func (m *DbMsg) XXX_Unmarshal(b []byte) error

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) Delay

func (m *MsgProducer) Delay() int64

Delay 返回延迟发送的时间 毫秒 单位

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) MarshalTo

func (m *MsgProducer) MarshalTo(dAtA []byte) (int, 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) Transfer

func (m *MsgProducer) Transfer(setID bool)

Transfer 必要的参数转换

func (*MsgProducer) Unmarshal

func (m *MsgProducer) Unmarshal(dAtA []byte) error

func (*MsgProducer) ValidateEdit

func (m *MsgProducer) ValidateEdit() error

func (*MsgProducer) Validated

func (m *MsgProducer) Validated() error

Validated 验证参数时候合法

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

type Result

type Result int32
const (
	Success Result = 0
	Fail    Result = 1
)

func (Result) EnumDescriptor

func (Result) EnumDescriptor() ([]byte, []int)

func (Result) String

func (x Result) String() string

type Server

type Server int32
const (
	AliYun Server = 0
	ExMail Server = 1
)

func (Server) EnumDescriptor

func (Server) EnumDescriptor() ([]byte, []int)

func (Server) String

func (x Server) String() string

type Status

type Status int32
const (
	Wait   Status = 0
	Cancel Status = 1
	Final  Status = 2
)

func (Status) EnumDescriptor

func (Status) EnumDescriptor() ([]byte, []int)

func (Status) String

func (x Status) String() string

type Type

type Type int32
const (
	Sms    Type = 0
	WeChat Type = 1
	Email  Type = 2
)

func (Type) EnumDescriptor

func (Type) EnumDescriptor() ([]byte, []int)

func (Type) String

func (x Type) String() string

Jump to

Keyboard shortcuts

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