This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Determine what fields should be created for a specific event | |
func FetchFields(event string) ([]SchemaField, error) { | |
var fields []SchemaField | |
messageType := proto.MessageType(event) | |
if messageType == nil { | |
return fields, fmt.Errorf("schema does not exist: %s", event) | |
} | |
fields = FetchFieldsForStruct("", messageType.Elem()) | |
return fields, nil | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Table "public.reverb_event_usersignedup" | |
Column | Type | Modifiers | |
---------------------+-----------------------------+----------- | |
timestamp | timestamp without time zone | | |
event_source | character varying(1024) | | |
newsletter_opt_in | character varying(1024) | | |
user_id | character varying(1024) | | |
registration_source | character varying(1024) | | |
referer | character varying(1024) | | |
aid | character varying(1024) | |
OlderNewer