model

package
v0.0.0-...-da17191 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

Model package

This package is where we put the model types. The model types are the types that are used by all internal APIs. Model types also have functions for conversion between model types and protobuffer equivalents. While this is a bit cumbersome, it is better than using protobuffer objects as model types since this is not recommended.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sample

type Sample struct {
	ID   uint64
	Name string
	Data []byte
}

Sample is a sample data structure

func SampleFromProto

func SampleFromProto(p *apipb.Sample) Sample

SampleFromProto returns Sample corresponding to apipb.Sample

func (Sample) Proto

func (s Sample) Proto() *apipb.Sample

Proto returns the protobuffer equivalent of the Sample

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL