Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
func NewMonitor ¶
func NewMonitor(redisAddr string, client rueidis.Client, opts ...MonitorOption) *Monitor
func (*Monitor) FetchAllTickets ¶
func (*Monitor) TicketCount ¶
type MonitorFetchProgress ¶
type MonitorFetchProgress struct {
State MonitorFetchProgressState
TicketsScanned int
TicketsFetched int
// --- done
TicketsAdded int
TicketsExpired int
}
type MonitorFetchProgressState ¶
type MonitorFetchProgressState string
const ( MonitorFetchProgressStateScanning MonitorFetchProgressState = "scanning" MonitorFetchProgressStateFetching MonitorFetchProgressState = "fetching" MonitorFetchProgressStateDone MonitorFetchProgressState = "done" )
type MonitorOption ¶
type MonitorOption interface {
// contains filtered or unexported methods
}
func WithMinimatch ¶
func WithMinimatch() MonitorOption
func WithRedisKeyPrefix ¶
func WithRedisKeyPrefix(prefix string) MonitorOption
type MonitorOptionFunc ¶
type MonitorOptionFunc func(options *monitorOptions)
type Ticket ¶
type Ticket struct {
TicketID string
Status TicketStatus
CreatedAt time.Time
SearchFields *pb.SearchFields
Assignment *pb.Assignment
ExpiredAt *time.Time
Extensions map[string]*anypb.Any
}
type TicketStatus ¶
type TicketStatus string
const ( TicketStatusActive TicketStatus = "Active" TicketStatusProposed TicketStatus = "Proposed" TicketStatusAssigned TicketStatus = "Assigned" )
Click to show internal directories.
Click to hide internal directories.
