Documentation ¶
Index ¶
- Variables
- func CreateNewMessage(id string) (proto.Message, error)
- func DecodeDescriptorSet(rt *RecordTemplate, descriptorSetProto []byte) (err error)
- func EditTemplate(tmpl *RecordTemplate, newRaw string, editTxid string) error
- func IntakeRecordTemplate(rt *pb_templates.RecordTemplateProto, pubKey []byte, ...) (*elastic.BulkIndexRequest, error)
- func LoadTemplatesFromES(ctx context.Context) error
- type Applied
- type MetaApplied
- type RecordTemplate
- type TMeta
Constants ¶
This section is empty.
Variables ¶
View Source
var TemplateMessageFactory = dynamic.NewMessageFactoryWithDefaults()
Functions ¶
func DecodeDescriptorSet ¶
func DecodeDescriptorSet(rt *RecordTemplate, descriptorSetProto []byte) (err error)
func EditTemplate ¶
func EditTemplate(tmpl *RecordTemplate, newRaw string, editTxid string) error
func IntakeRecordTemplate ¶
func IntakeRecordTemplate(rt *pb_templates.RecordTemplateProto, pubKey []byte, tx *datastore.TransactionData) (*elastic.BulkIndexRequest, error)
func LoadTemplatesFromES ¶
Types ¶
type MetaApplied ¶
type MetaApplied struct {
Meta Applied `json:"meta"`
}
type RecordTemplate ¶
type RecordTemplate struct { // Human readable name to quickly identify type (non-unique) FriendlyName string `json:"friendly_name,omitempty"` // Generated name Name string `json:"name"` // Description of the purpose behind this new type Description string `json:"description,omitempty"` // Message MessageDescriptor *desc.MessageDescriptor `json:"-"` // File // FileDescriptor *desc.FileDescriptor `json:"-"` FileDescriptorSet string `json:"file_descriptor_set"` // Message type // MessageType reflect.Type `json:"-"` // Populated by oipd with the unique identifier for this type Identifier uint32 `json:"identifier"` // List of unique template identifiers recommended for use with this template Extends []uint32 `json:"extends,omitempty"` Txid string `json:"-"` SignedBy string `json:"-"` }
func GetTemplate ¶
func GetTemplate(txid string) (*RecordTemplate, error)
Click to show internal directories.
Click to hide internal directories.