Types
Common types used throughout the Conviso Go SDK.
Identifiers
Used to identify a user in messaging payloads.
type Identifiers struct {
ID string `json:"id,omitempty"`
Email string `json:"email,omitempty"`
Phone string `json:"phone,omitempty"`
CioID string `json:"cio_id,omitempty"`
}
Exactly one identifier must be provided.
CDPConfig
Configuration struct for NewClient.
type CDPConfig struct {
CDPAPIKey string
CDPEndpoint string
MaxConcurrentRequests int
Timeout int
Logger Logger
FailOnException bool
Debug bool
SendToCustomerIO bool
CustomerIO *CustomerIOConfig
}
CustomerIOConfig
Configuration for Customer.io dual-write integration.
type CustomerIOConfig struct {
SiteID string
APIKey string
Region string // "us" or "eu"
}
Logger
Interface for custom logging.
type Logger interface {
Debug(msg string, keyvals ...interface{})
Info(msg string, keyvals ...interface{})
Warn(msg string, keyvals ...interface{})
Error(msg string, keyvals ...interface{})
}