Documentation ¶
Index ¶
- func AssertUTC(t time.Time)
- func CommonPostlude(ctx context.Context, methodName string, rsp proto.Message, err error) error
- func IsolateURL(host, ns, digest string) string
- func Main(init func(srv *server.Server) error)
- func MustGetContextHTTPClient(ctx context.Context) *http.Client
- func ParseIsolateURL(s string) (host, ns, digest string, err error)
- func WithSelfTransport(ctx context.Context) (context.Context, error)
- func WithTestHTTPClient(ctx context.Context, client *http.Client) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommonPostlude ¶
CommonPostlude must be used as a postlude in all ResultDB services.
Extracts a status using appstatus and returns to the requester. If the error is internal or unknown, logs the stack trace.
func IsolateURL ¶
IsolateURL returns a machine-readable URL for an isolated object.
func MustGetContextHTTPClient ¶
MustGetContextHTTPClient retrieves the current http.client from the context.
func ParseIsolateURL ¶
ParseIsolateURL parses an isolate URL. It is a reverse of IsolateURL.
func WithSelfTransport ¶
WithSelfTransport sets an http client in the context using the service's own authroity. WARNING: Use this only when using auth.AsProject is not possible, as using this to authorize RPCs that touch project data leads to "confused deputy" problems.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package artifactcontent can serve artifact content via plain HTTP securely.
|
Package artifactcontent can serve artifact content via plain HTTP securely. |
Package cron can runs functions periodically.
|
Package cron can runs functions periodically. |
services
|
|
deriver
Package deriver implements a binary that hosts luci.resultdb.v1.Deriver service.
|
Package deriver implements a binary that hosts luci.resultdb.v1.Deriver service. |
globalmetrics
Package globalmetrics reports metrics that are computationally heavy.
|
Package globalmetrics reports metrics that are computationally heavy. |
purger
Package purger deletes expired test results from Spanner.
|
Package purger deletes expired test results from Spanner. |
recorder
Package recorder implements a binary that hosts luci.resultdb.v1.Recorder service.
|
Package recorder implements a binary that hosts luci.resultdb.v1.Recorder service. |
Package span contains utility functions to interact with the underlying Spanner storage.
|
Package span contains utility functions to interact with the underlying Spanner storage. |
Package tasks implements asynchronous invocation processing.
|
Package tasks implements asynchronous invocation processing. |
insert
Package insert implements functions to insert rows for testing purposes.
|
Package insert implements functions to insert rows for testing purposes. |