numeral

package module
v0.0.0-...-d242f8f Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: MIT Imports: 1 Imported by: 0

README

numeral

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {
	KeyID       string
	ContentType string
	Binary      []byte
}

Image struct

type Log

type Log struct {
	ID        string `json:"id,omitempty"`
	Count     int    `json:"count,omitempty"`
	ImageKey  string `json:"image_key,omitempty"`
	CreatedAt string `json:"created_at,omitempty"`
	UpdatedAt string `json:"updated_at,omitempty"`
	DeviceID  string `json:"device_id,omitempty"`
	ShapeID   string `json:"shape_id,omitempty"`
}

Log struct

type Repository

type Repository interface {
	CreateLog(ctx context.Context, countLog Log) (Log, error)
	GetByID(ctx context.Context, id string) (Log, error)
	UpdateLog(ctx context.Context, id string, countLog Log) (Log, error)
}

Repository interface

type Storage

type Storage interface {
	PutImage(ctx context.Context, countImage Image) (Image, error)
}

Storage interface

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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