Documentation
¶
Index ¶
- Constants
- func NewId() string
- func NewTime() string
- func ParseTime(timestr string) (time.Time, error)
- type BatchNote
- func (*BatchNote) Descriptor() ([]byte, []int)
- func (m *BatchNote) GetNotes() []*Note
- func (m *BatchNote) GetTime() string
- func (m *BatchNote) GetVersion() string
- func (*BatchNote) ProtoMessage()
- func (m *BatchNote) Reset()
- func (m *BatchNote) String() string
- func (m *BatchNote) XXX_DiscardUnknown()
- func (m *BatchNote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BatchNote) XXX_Merge(src proto.Message)
- func (m *BatchNote) XXX_Size() int
- func (m *BatchNote) XXX_Unmarshal(b []byte) error
- type Note
- func (*Note) Descriptor() ([]byte, []int)
- func (m *Note) GetCredentials() string
- func (m *Note) GetData() []byte
- func (m *Note) GetDataContentType() string
- func (m *Note) GetId() string
- func (m *Note) GetSource() string
- func (m *Note) GetTime() string
- func (m *Note) GetType() string
- func (m *Note) GetVersion() string
- func (*Note) ProtoMessage()
- func (m *Note) Reset()
- func (m *Note) String() string
- func (m *Note) XXX_DiscardUnknown()
- func (m *Note) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Note) XXX_Merge(src proto.Message)
- func (m *Note) XXX_Size() int
- func (m *Note) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const (
// Version is the package version
Version = "0.1.0"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BatchNote ¶
type BatchNote struct {
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
Time string `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
Notes []*Note `protobuf:"bytes,3,rep,name=notes,proto3" json:"notes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*BatchNote) Descriptor ¶
func (*BatchNote) GetVersion ¶
func (*BatchNote) ProtoMessage ¶
func (*BatchNote) ProtoMessage()
func (*BatchNote) XXX_DiscardUnknown ¶
func (m *BatchNote) XXX_DiscardUnknown()
func (*BatchNote) XXX_Marshal ¶
func (*BatchNote) XXX_Unmarshal ¶
type Note ¶
type Note struct {
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
Time string `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
Credentials string `protobuf:"bytes,6,opt,name=credentials,proto3" json:"credentials,omitempty"`
DataContentType string `protobuf:"bytes,7,opt,name=data_content_type,json=dataContentType,proto3" json:"data_content_type,omitempty"`
Data []byte `protobuf:"bytes,8,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
[START Messages]
func New ¶
func New() Note
New creates a new note with a random ID, the current time, and the default spec version
func (*Note) Descriptor ¶
func (*Note) GetCredentials ¶
func (*Note) GetDataContentType ¶
func (*Note) GetVersion ¶
func (*Note) ProtoMessage ¶
func (*Note) ProtoMessage()
func (*Note) XXX_DiscardUnknown ¶
func (m *Note) XXX_DiscardUnknown()
func (*Note) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.