-
Notifications
You must be signed in to change notification settings - Fork 20
/
sink.go
32 lines (30 loc) · 1011 Bytes
/
sink.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) 2022 Silverton Data, Inc.
// You may use, distribute, and modify this code under the terms of the Apache-2.0 license, a copy of
// which may be found at https://github.com/silverton-io/buz/blob/main/LICENSE
package config
type Sink struct {
Name string `json:"name"`
Type string `json:"type"`
DeliveryRequired bool `json:"deliveryRequired"`
DefaultOutput string `json:"defaultOutput"`
DeadletterOutput string `json:"deadletterOutput"`
// GCP
Project string `json:"project,omitempty"`
// Kafka
Brokers []string `json:"kakfaBrokers,omitempty"`
// Http / API
Url string `json:"url"`
ApiKey string `json:"-"`
Token string `json:"-"`
// Misc
Region string `json:"-"`
// Database
Hosts []string `json:"-"`
Port uint16 `json:"-"`
Database string `json:"-"`
User string `json:"-"`
Password string `json:"-"`
// Pubnub
PubnubPubKey string `json:"pubnubPubKey,omitempty"`
PubnubSubKey string `json:"pubnubSubKey,omitempty"`
}