blob: 78d9e750a00e0d0d52fe9d0bc2451ed4e3cdc175 [file] [log] [blame]
khenaidoobf6e7bb2018-08-14 22:27:29 -04001/*
2 * Copyright 2018-present Open Networking Foundation
3
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7
8 * http://www.apache.org/licenses/LICENSE-2.0
9
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
khenaidooabad44c2018-08-03 16:58:35 -040016package kafka
17
khenaidooabad44c2018-08-03 16:58:35 -040018// A Topic definition - may be augmented with additional attributes eventually
19type Topic struct {
20 // The name of the topic. It must start with a letter,
21 // and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
22 // underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
23 // signs (`%`).
24 Name string
25}
26
27type KVArg struct {
28 Key string
29 Value interface{}
30}