Documentation
¶
Index ¶
- Constants
- func ConfigPath() string
- func DefaultConfigPath() string
- func Generate(telemetry types.TelemetryType, class TelemetryClass, content []byte, ...) (err error)
- func GetTelemetryClientId() (clientId string, err error)
- func GetTelemetryCustomerId() (clientId string, err error)
- func Register() (err error)
- func SetConfigPath(path string)
- func UpdateTelemetryClientId(clientId string) (err error)
- func UpdateTelemetryCustomerId(customerId string) (err error)
- type ClientStatus
- type GenerateFlags
- type Tags
- type TelemetryClass
- type TelemetryType
Constants ¶
View Source
const ( MANDATORY_TELEMETRY = types.MANDATORY_TELEMETRY OPT_OUT_TELEMETRY = types.OPT_OUT_TELEMETRY OPT_IN_TELEMETRY = types.OPT_IN_TELEMETRY )
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate( telemetry types.TelemetryType, class TelemetryClass, content []byte, tags types.Tags, flags GenerateFlags, ) (err error)
func GetTelemetryClientId ¶
func GetTelemetryCustomerId ¶
func UpdateTelemetryClientId ¶
Types ¶
type ClientStatus ¶
type ClientStatus int64
const ( CLIENT_UNINITIALIZED ClientStatus = iota CLIENT_CONFIG_MISSING CLIENT_CONFIG_ACCESSIBLE CLIENT_DISABLED CLIENT_MISCONFIGURED CLIENT_DATASTORE_ACCESSIBLE CLIENT_REGISTRATION_ACCESSIBLE CLIENT_REGISTERED )
func Status ¶
func Status() (status ClientStatus)
func (ClientStatus) Disabled ¶ added in v0.1.5
func (cs ClientStatus) Disabled() bool
func (ClientStatus) Ready ¶ added in v0.1.5
func (cs ClientStatus) Ready() bool
func (ClientStatus) RegistrationRequired ¶ added in v0.1.5
func (cs ClientStatus) RegistrationRequired() bool
func (*ClientStatus) String ¶
func (cs *ClientStatus) String() string
type GenerateFlags ¶
type GenerateFlags uint64
const ( GENERATE GenerateFlags = iota SUBMIT GenerateFlags = 1 << (iota - 1) )
func (GenerateFlags) IsFlagSet ¶
func (gf GenerateFlags) IsFlagSet(flag GenerateFlags) bool
func (*GenerateFlags) SetFlag ¶ added in v0.1.5
func (gf *GenerateFlags) SetFlag(flag GenerateFlags)
func (*GenerateFlags) SetSubmitRequested ¶ added in v0.1.5
func (gf *GenerateFlags) SetSubmitRequested()
func (*GenerateFlags) String ¶
func (gf *GenerateFlags) String() string
func (GenerateFlags) SubmitRequested ¶
func (gf GenerateFlags) SubmitRequested() bool
type TelemetryClass ¶
type TelemetryClass = types.TelemetryClass
Click to show internal directories.
Click to hide internal directories.