milvus/docs/developer_guides/chap04_message_stream.md
GuoRentong 1abc69277b Update doc: service api
Signed-off-by: GuoRentong <rentong.guo@zilliz.com>
2020-12-29 18:02:44 +08:00

53 lines
688 B
Markdown

## 8. Message Stream Service
#### 8.1 Overview
#### 8.2 API
```go
type Client interface {
CreateChannels(req CreateChannelRequest) (ChannelID []string, error)
DestoryChannels(channelID []string) error
DescribeChannels(channelID []string) (ChannelDescriptions, error)
}
```
* *CreateChannels*
```go
type OwnerDescription struct {
Role string
Address string
//Token string
DescriptionText string
}
type CreateChannelRequest struct {
OwnerDescription OwnerDescription
numChannels int
}
```
* *DescribeChannels*
```go
type ChannelDescription struct {
Owner OwnerDescription
}
type ChannelDescriptions struct {
Descriptions []ChannelDescription
}
```