Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddRequest ¶
type AddRequest struct { Name string `json:"name"` Info string `json:"info"` InternalSeconds int `json:"internal_seconds"` }
func (AddRequest) Valid ¶
func (req AddRequest) Valid() bool
type DelRequest ¶
type DelRequest struct {
ID string `json:"id"`
}
func (DelRequest) Valid ¶
func (req DelRequest) Valid() bool
type MemoAllItem ¶
type MemoAllItem struct { ID string `json:"id" yaml:"id"` Name string `json:"name" yaml:"name"` Info string `json:"info,omitempty" yaml:"info,omitempty"` Span string `json:"span" yaml:"span"` Disabled bool `json:"disabled,omitempty" yaml:"disabled,omitempty"` LastTouchAt time.Time `json:"last_touch_at,omitempty" yaml:"last_touch_at,omitempty"` LastSuccessTouchInfo *MemoTouchInfo `json:"last_success_touch_info,omitempty" yaml:"last_success_touch_info,omitempty"` LastFailTouchInfo *MemoTouchInfo `json:"last_fail_touch_info,omitempty" yaml:"last_fail_touch_info,omitempty"` UntilExpired string `json:"until_expired,omitempty" yaml:"until_expired,omitempty"` Expired bool `json:"expired,omitempty" yaml:"expired,omitempty"` }
type MemoRecord ¶
type MemoRecord struct { ID string `json:"id" yaml:"id"` LastTouchAt time.Time `json:"last_touch_at,omitempty" yaml:"last_touch_at,omitempty"` LastSuccessTouchInfo *MemoTouchInfo `json:"last_success_touch_info,omitempty" yaml:"last_success_touch_info,omitempty"` LastFailTouchInfo *MemoTouchInfo `json:"last_fail_touch_info,omitempty" yaml:"last_fail_touch_info,omitempty"` }
type MemoTouchInfo ¶
type TouchRequest ¶
type TouchRequest struct { ID string `json:"id"` FailFlag bool `json:"fail_flag,omitempty"` Info string `json:"info,omitempty"` }
func (TouchRequest) Valid ¶
func (req TouchRequest) Valid() bool
Click to show internal directories.
Click to hide internal directories.