MCPcopy Create free account
hub / github.com/facebook/time / Set

Method Set

calnex/api/api.go:374–381  ·  view source on GitHub ↗

Set Channel to Channels

(channel string)

Source from the content-addressed store, hash-verified

372
373// Set Channel to Channels
374func (cs *Channels) Set(channel string) error {
375 c, err := ChannelFromString(channel)
376 if err != nil {
377 return err
378 }
379 *cs = append(*cs, *c)
380 return nil
381}
382
383// String returns all channels
384func (cs *Channels) String() string {

Callers 8

TestChannelsFunction · 0.95
handleRequestMethod · 0.45
handleRequestMethod · 0.45
handleRootRequestMethod · 0.45
handleCountersRequestMethod · 0.45
scrapeMetricsMethod · 0.45
handleRequestMethod · 0.45
postFileMethod · 0.45

Calls 1

ChannelFromStringFunction · 0.85

Tested by 1

TestChannelsFunction · 0.76