Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamicSchema ¶
type DynamicSchema struct{}
DynamicSchema defines a schema-free sample.
func NewDynamicSchema ¶
func NewDynamicSchema() DynamicSchema
NewDynamicSchema creates a new DynamicSchema
type ProtoSchema ¶
ProtoSchema defines a proto-based sample.
func NewProtoSchema ¶
func NewProtoSchema(proto proto.Message) ProtoSchema
NewProtoSchema creates a new ProtoSchema. The proto argument defines the sample schema.
type Sample ¶
func JSONSample ¶
JSONSample creates a data sample encoded as a JSON string. The JSON string must be a valid JSON object.
func NativeSample ¶
NativeSample creates a data sample represented as a Go struct. Only exported fields will be part of the sample.
Click to show internal directories.
Click to hide internal directories.