MCPcopy Create free account
hub / github.com/CyCoreSystems/ari-proxy / Create

Method Create

client/channel.go:72–84  ·  view source on GitHub ↗
(key *ari.Key, o ari.ChannelCreateRequest)

Source from the content-addressed store, hash-verified

70}
71
72func (c *channel) Create(key *ari.Key, o ari.ChannelCreateRequest) (*ari.ChannelHandle, error) {
73 k, err := c.c.createRequest(&proxy.Request{
74 Kind: "ChannelCreate",
75 Key: key,
76 ChannelCreate: &proxy.ChannelCreate{
77 ChannelCreateRequest: o,
78 },
79 })
80 if err != nil {
81 return nil, err
82 }
83 return ari.NewChannelHandle(k.New(ari.ChannelKey, o.ChannelID), c, nil), nil
84}
85
86func (c *channel) Data(key *ari.Key) (*ari.ChannelData, error) {
87 data, err := c.c.dataRequest(&proxy.Request{

Callers

nothing calls this directly

Calls 2

createRequestMethod · 0.80
NewMethod · 0.80

Tested by

no test coverage detected