luci: go.chromium.org/luci/casviewer Index | Files | Directories

package casviewer

import "go.chromium.org/luci/casviewer"

Index

Package Files

blobs.go client.go errors.go handlers.go

func GetClient Uses

func GetClient(c context.Context, instance string) (*client.Client, error)

GetClient returns a Client by loading it from cache or creating a new one.

func InstallHandlers Uses

func InstallHandlers(r *router.Router, cc *ClientCache)

InstallHandlers install CAS Viewer handlers to the router.

func NewClient Uses

func NewClient(ctx context.Context, instance string) (*client.Client, error)

NewClient connects to the instance of remote execution service, and returns a client.

type ClientCache Uses

type ClientCache struct {
    // contains filtered or unexported fields
}

ClientCache caches CAS clients, one per an instance.

func NewClientCache Uses

func NewClientCache(ctx context.Context) *ClientCache

NewClientCache initializes ClientCache.

func (*ClientCache) Clear Uses

func (cc *ClientCache) Clear()

Clear closes Clients gracefully, and removes them from cache.

func (*ClientCache) Get Uses

func (cc *ClientCache) Get(instance string) (*client.Client, error)

Get returns a Client by loading it from cache or creating a new one.

Directories

PathSynopsis
appengine

Package casviewer imports 21 packages (graph) and is imported by 2 packages. Updated 2020-09-30. Refresh now. Tools for package owners.