Documentation
¶
Index ¶
- func DigestFromBlob(blob []byte, hasher Hasher) bfpb.Digest
- func DigestFromMessage(msg proto.Message, hasher Hasher) (bfpb.Digest, error)
- func DigestString(d bfpb.Digest) string
- func DocumentSetContent(n *html.Node, c *html.Node)
- func DocumentSetText(n *html.Node, t string)
- func ExecuteOperationMetadata(op *longrunning.Operation) (*reapi.ExecuteOperationMetadata, error)
- func ExecutedActionMetadata(o *longrunning.Operation) (*reapi.ExecutedActionMetadata, error)
- func Expect(c *grpc.ClientConn, d bfpb.Digest, m proto.Message) error
- func FetchTree(d bfpb.Digest, i map[string]*reapi.Directory, c *grpc.ClientConn) error
- func FromDigest(d bfpb.Digest) reapi.Digest
- func Hash(key string) string
- func Hide(n *html.Node)
- func Key(key string) string
- func ParseDigest(s string) bfpb.Digest
- func RegisterHash(h Hasher, f func() hash.Hash)
- func RequestMetadata(o *longrunning.Operation) *reapi.RequestMetadata
- func Select(n *html.Node, selector string) *html.Node
- func SelectAll(n *html.Node, selector string) []*html.Node
- func Show(n *html.Node)
- func Slot(key string) int
- func ToDigest(d reapi.Digest, df reapi.DigestFunction_Value) bfpb.Digest
- type App
- type Document
- func (d *Document) Find(selector string) *html.Node
- func (d *Document) FindAll(selector string) []*html.Node
- func (d *Document) Parse(data string)
- func (d *Document) Render() string
- func (d *Document) RenderSource() string
- func (d *Document) SetRoot(n *html.Node)
- func (d Document) Title() string
- func (d *Document) Update()
- type Hasher
- type List
- func (self *List) Draw(buf *ui.Buffer)
- func (self *List) ScrollAmount(amount int)
- func (self *List) ScrollBottom()
- func (self *List) ScrollDown()
- func (self *List) ScrollHalfPageDown()
- func (self *List) ScrollHalfPageUp()
- func (self *List) ScrollPageDown()
- func (self *List) ScrollPageUp()
- func (self *List) ScrollTop()
- func (self *List) ScrollUp()
- type Operation
- type Paragraph
- type Queue
- type Tree
- func (self *Tree) Collapse()
- func (self *Tree) CollapseAll()
- func (self *Tree) Draw(buf *ui.Buffer)
- func (self *Tree) Expand()
- func (self *Tree) ExpandAll()
- func (self *Tree) ScrollAmount(amount int)
- func (self *Tree) ScrollBottom()
- func (self *Tree) ScrollDown()
- func (self *Tree) ScrollHalfPageDown()
- func (self *Tree) ScrollHalfPageUp()
- func (self *Tree) ScrollPageDown()
- func (self *Tree) ScrollPageUp()
- func (self *Tree) ScrollTop()
- func (self *Tree) ScrollUp()
- func (self *Tree) SelectedNode() *TreeNode
- func (self *Tree) SetNodes(nodes []*TreeNode)
- func (self *Tree) Size() int
- func (self *Tree) ToggleExpand()
- func (self *Tree) Walk(fn TreeWalkFn)
- type TreeNode
- type TreeWalkFn
- type UnifiedRedis
- func (r *UnifiedRedis) ClusterShards(ctx context.Context) *redis.ClusterShardsCmd
- func (r *UnifiedRedis) HLen(ctx context.Context, key string) *redis.IntCmd
- func (r *UnifiedRedis) HScan(ctx context.Context, key string, cursor uint64, match string, count int64) *redis.ScanCmd
- func (r *UnifiedRedis) LLen(ctx context.Context, key string) *redis.IntCmd
- func (r *UnifiedRedis) LRange(ctx context.Context, key string, start, stop int64) *redis.StringSliceCmd
- func (r *UnifiedRedis) ZCard(ctx context.Context, key string) *redis.IntCmd
- func (r *UnifiedRedis) ZRange(ctx context.Context, key string, start, stop int64) *redis.StringSliceCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DigestFromMessage ¶
func DigestString ¶
func DocumentSetText ¶
func ExecuteOperationMetadata ¶
func ExecuteOperationMetadata(op *longrunning.Operation) (*reapi.ExecuteOperationMetadata, error)
func ExecutedActionMetadata ¶
func ExecutedActionMetadata(o *longrunning.Operation) (*reapi.ExecutedActionMetadata, error)
func ParseDigest ¶
func RegisterHash ¶
func RequestMetadata ¶
func RequestMetadata(o *longrunning.Operation) *reapi.RequestMetadata
Types ¶
type App ¶
type App struct {
Instance string
RedisHost string
ReapiHost string
LastRedisLatency time.Duration
LastReapiLatency time.Duration
CA string
Done bool
Client *UnifiedRedis
Conn *grpc.ClientConn
Ops map[string]*longrunning.Operation
Metadatas map[string]*reapi.RequestMetadata
Invocations map[string][]string
Fetches uint
Mutex *sync.Mutex
FrameLimit int
SkipFrames int
UpdateCountdown int
// contains filtered or unexported fields
}
func (*App) GetWorkerConn ¶
func (a *App) GetWorkerConn(worker string, ca string) *grpc.ClientConn
type Document ¶
type Document struct {
// contains filtered or unexported fields
}
func NewDocument ¶
func NewDocument() *Document
func (*Document) RenderSource ¶
type Hasher ¶
type Hasher uint
func HasherFromDigestFunction ¶
func HasherFromDigestFunction(df reapi.DigestFunction_Value) Hasher
type List ¶
type List struct {
ui.Block
Rows []fmt.Stringer
WrapText bool
TextStyle ui.Style
SelectedRow int
SelectedRowStyle ui.Style
SubTitle fmt.Stringer
SubTitleStyle ui.Style
// contains filtered or unexported fields
}
func (*List) ScrollAmount ¶
ScrollAmount scrolls by amount given. If amount is < 0, then scroll up. There is no need to set self.topRow, as this will be set automatically when drawn, since if the selected item is off screen then the topRow variable will change accordingly.
func (*List) ScrollBottom ¶
func (self *List) ScrollBottom()
func (*List) ScrollDown ¶
func (self *List) ScrollDown()
func (*List) ScrollHalfPageDown ¶
func (self *List) ScrollHalfPageDown()
func (*List) ScrollHalfPageUp ¶
func (self *List) ScrollHalfPageUp()
func (*List) ScrollPageDown ¶
func (self *List) ScrollPageDown()
func (*List) ScrollPageUp ¶
func (self *List) ScrollPageUp()
type Operation ¶
type Operation struct {
Name string
Metadata *reapi.RequestMetadata
Done bool
}
func ParsePrequeueName ¶
func ParseQueueName ¶
type Paragraph ¶
func NewParagraph ¶
func NewParagraph() *Paragraph
type Tree ¶
type Tree struct {
ui.Block
TextStyle ui.Style
SelectedRowStyle ui.Style
WrapText bool
SelectedRow int
Focused bool
// contains filtered or unexported fields
}
Tree is a tree widget.
func (*Tree) CollapseAll ¶
func (self *Tree) CollapseAll()
func (*Tree) ScrollAmount ¶
ScrollAmount scrolls by amount given. If amount is < 0, then scroll up. There is no need to set self.topRow, as this will be set automatically when drawn, since if the selected item is off screen then the topRow variable will change accordingly.
func (*Tree) ScrollBottom ¶
func (self *Tree) ScrollBottom()
func (*Tree) ScrollDown ¶
func (self *Tree) ScrollDown()
func (*Tree) ScrollHalfPageDown ¶
func (self *Tree) ScrollHalfPageDown()
func (*Tree) ScrollHalfPageUp ¶
func (self *Tree) ScrollHalfPageUp()
func (*Tree) ScrollPageDown ¶
func (self *Tree) ScrollPageDown()
func (*Tree) ScrollPageUp ¶
func (self *Tree) ScrollPageUp()
func (*Tree) SelectedNode ¶
func (*Tree) ToggleExpand ¶
func (self *Tree) ToggleExpand()
func (*Tree) Walk ¶
func (self *Tree) Walk(fn TreeWalkFn)
type TreeNode ¶
type TreeNode struct {
Value fmt.Stringer
Expanded bool
Nodes []*TreeNode
// contains filtered or unexported fields
}
TreeNode is a tree node.
type TreeWalkFn ¶
TreeWalkFn is a function used for walking a Tree. To interrupt the walking process function should return <= 0 To prevent steps down the tree, return <= 0
type UnifiedRedis ¶
type UnifiedRedis struct {
// contains filtered or unexported fields
}
func (*UnifiedRedis) ClusterShards ¶
func (r *UnifiedRedis) ClusterShards(ctx context.Context) *redis.ClusterShardsCmd
func (*UnifiedRedis) LRange ¶
func (r *UnifiedRedis) LRange(ctx context.Context, key string, start, stop int64) *redis.StringSliceCmd
func (*UnifiedRedis) ZRange ¶
func (r *UnifiedRedis) ZRange(ctx context.Context, key string, start, stop int64) *redis.StringSliceCmd