AddContext add key/value pairs to context (settings, metatadata).
(key string, value interface{})
| 612 | |
| 613 | // AddContext add key/value pairs to context (settings, metatadata). |
| 614 | func (m *Table) AddContext(key string, value interface{}) { |
| 615 | if len(m.Context) == 0 { |
| 616 | m.Context = make(map[string]interface{}) |
| 617 | } |
| 618 | m.Context[key] = value |
| 619 | } |
| 620 | |
| 621 | func (m *Table) Marshal() ([]byte, error) { |
| 622 | return proto.Marshal(&m.TablePb) |
no outgoing calls