MCPcopy Create free account
hub / github.com/rilldata/rill / SetUserID

Method SetUserID

cli/pkg/dotrill/dotrill.go:235–237  ·  view source on GitHub ↗

SetCurrentUserID saves the current user ID

(userID string)

Source from the content-addressed store, hash-verified

233
234// SetCurrentUserID saves the current user ID
235func (d DotRill) SetUserID(userID string) error {
236 return d.Set(StateFilename, UserIDStateKey, userID)
237}
238
239// GetUserCheckHash gets the hash used to determine whether to re-fetch the user ID.
240func (d DotRill) GetUserCheckHash() (string, error) {

Callers 1

CurrentUserIDMethod · 0.80

Calls 1

SetMethod · 0.95

Tested by

no test coverage detected