Documentation ¶
Index ¶
- type DBEntry
- type PostgRESTStore
- func (b *PostgRESTStore) Add(entry DBEntry) (int64, error)
- func (b *PostgRESTStore) Delete(key string) (int64, error)
- func (b *PostgRESTStore) Fetch(key string) (Simulation, error)
- func (b *PostgRESTStore) List(key string) ([]SimInfo, error)
- func (b *PostgRESTStore) Replace(key string, entry DBEntry) (int64, error)
- type Result
- type SimDBStore
- type SimInfo
- type SimStore
- type Simulation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBEntry ¶
type DBEntry struct { Key string `json:"simulation_key"` GitHash string `json:"git_hash"` HashedConfig string `json:"config_hash"` Author int64 `json:"author"` AuthorString string `json:"author_string,omitempty"` Description string `json:"sim_description"` }
func (*DBEntry) ConvertConfig ¶
type PostgRESTStore ¶
type PostgRESTStore struct { URL string // contains filtered or unexported fields }
func NewPostgRESTStore ¶
func NewPostgRESTStore(url string) *PostgRESTStore
func (*PostgRESTStore) Fetch ¶
func (b *PostgRESTStore) Fetch(key string) (Simulation, error)
type SimDBStore ¶
type SimStore ¶
type SimStore interface {
Fetch(url string) (Simulation, error)
}
type Simulation ¶
type Simulation struct { Metadata string `json:"metadata"` ViewerFile string `json:"viewer_file"` IsPermanent bool `json:"is_permanent"` }
func (*Simulation) DecodeViewer ¶
func (s *Simulation) DecodeViewer() (*Result, error)
Click to show internal directories.
Click to hide internal directories.