MCPcopy
hub / github.com/seaweedfs/seaweedfs / WithURLPrefix

Function WithURLPrefix

weed/admin/dash/context.go:66–68  ·  view source on GitHub ↗

WithURLPrefix stores the URL prefix on the context.

(ctx context.Context, prefix string)

Source from the content-addressed store, hash-verified

64
65// WithURLPrefix stores the URL prefix on the context.
66func WithURLPrefix(ctx context.Context, prefix string) context.Context {
67 return context.WithValue(ctx, contextURLPrefixKey, prefix)
68}
69
70// URLPrefixFromContext retrieves the URL prefix from context.
71func URLPrefixFromContext(ctx context.Context) string {

Callers 1

startAdminServerFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected