Documentation
¶
Index ¶
- Variables
- func GetTimerInfo(ts *TimeStamp) string
- func ListTimers(grpID uint64) []string
- func RegisterTimer(ts *TimeStamp, save bool)
- func SaveTimers() error
- type TimeStamp
- type Timer
- func (*Timer) Descriptor() ([]byte, []int)
- func (m *Timer) GetAlert() string
- func (m *Timer) GetDay() int32
- func (m *Timer) GetEnable() bool
- func (m *Timer) GetGrpid() uint64
- func (m *Timer) GetHour() int32
- func (m *Timer) GetMinute() int32
- func (m *Timer) GetMonth() int32
- func (m *Timer) GetUrl() string
- func (m *Timer) GetWeek() int32
- func (m *Timer) Marshal() (dAtA []byte, err error)
- func (m *Timer) MarshalTo(dAtA []byte) (int, error)
- func (m *Timer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Timer) ProtoMessage()
- func (m *Timer) Reset()
- func (m *Timer) Size() (n int)
- func (m *Timer) String() string
- func (m *Timer) Unmarshal(dAtA []byte) error
- func (m *Timer) XXX_DiscardUnknown()
- func (m *Timer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Timer) XXX_Merge(src proto.Message)
- func (m *Timer) XXX_Size() int
- func (m *Timer) XXX_Unmarshal(b []byte) error
- type TimersMap
- func (*TimersMap) Descriptor() ([]byte, []int)
- func (m *TimersMap) GetTimers() map[string]*Timer
- func (m *TimersMap) Marshal() (dAtA []byte, err error)
- func (m *TimersMap) MarshalTo(dAtA []byte) (int, error)
- func (m *TimersMap) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TimersMap) ProtoMessage()
- func (m *TimersMap) Reset()
- func (m *TimersMap) Size() (n int)
- func (m *TimersMap) String() string
- func (m *TimersMap) Unmarshal(dAtA []byte) error
- func (m *TimersMap) XXX_DiscardUnknown()
- func (m *TimersMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TimersMap) XXX_Merge(src proto.Message)
- func (m *TimersMap) XXX_Size() int
- func (m *TimersMap) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthTimer = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTimer = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTimer = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( // 定时器map Timers *(map[string]*Timer) )
Functions ¶
Types ¶
type Timer ¶
type Timer struct {
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
Alert string `protobuf:"bytes,2,opt,name=alert,proto3" json:"alert,omitempty"`
Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
Month int32 `protobuf:"zigzag32,4,opt,name=month,proto3" json:"month,omitempty"`
Day int32 `protobuf:"zigzag32,5,opt,name=day,proto3" json:"day,omitempty"`
Week int32 `protobuf:"zigzag32,6,opt,name=week,proto3" json:"week,omitempty"`
Hour int32 `protobuf:"zigzag32,7,opt,name=hour,proto3" json:"hour,omitempty"`
Minute int32 `protobuf:"zigzag32,8,opt,name=minute,proto3" json:"minute,omitempty"`
Grpid uint64 `protobuf:"varint,9,opt,name=grpid,proto3" json:"grpid,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Timer) Descriptor ¶
func (*Timer) ProtoMessage ¶
func (*Timer) ProtoMessage()
func (*Timer) XXX_DiscardUnknown ¶
func (m *Timer) XXX_DiscardUnknown()
func (*Timer) XXX_Marshal ¶
func (*Timer) XXX_Unmarshal ¶
type TimersMap ¶
type TimersMap struct {
Timers map[string]*Timer `` /* 153-byte string literal not displayed */
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*TimersMap) Descriptor ¶
func (*TimersMap) MarshalToSizedBuffer ¶
func (*TimersMap) ProtoMessage ¶
func (*TimersMap) ProtoMessage()
func (*TimersMap) XXX_DiscardUnknown ¶
func (m *TimersMap) XXX_DiscardUnknown()
func (*TimersMap) XXX_Marshal ¶
func (*TimersMap) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.