ports

package
v0.0.0-...-535f382 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CsvUpdownInputPort

type CsvUpdownInputPort struct {
	Name      string    `json:"name" example:"テスト 太郎"`
	Address   string    `json:"address" example:"東京都港区六本木1−1−1"`
	CreatedAt time.Time `json:"created_at" example:"2018-11-11 11:11:11"`
}

type CsvUpdownOutputPort

type CsvUpdownOutputPort struct {
	ID   uint
	Temp string
	Humi string
}

type FirestoreConnectInputPort

type FirestoreConnectInputPort struct {
	Collection string `json:"collection" example:"members"`    // firestoreのコレクション
	Address    string `json:"address" example:"東京都港区六本木1−1−1"` // 名前
	Name       string `json:"name" example:"テスト 太郎"`           //  住所
}

type FirestoreConnectOutputPort

type FirestoreConnectOutputPort struct {
	Address    string    `json:"address"` //  住所
	Name       string    `json:"name"`    // 名前
	Created_at time.Time `json:"created_at"`
}

type ImagesInputPort

type ImagesInputPort struct {
	ImageName string `json:"image_name" example:"small phone"`
	ImagePath string `json:"image_path" example:"/var/www/html"`
	ImageData string `json:"image_data" example:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAM2CAMAAACKYKqqAAAABGdBTUEAALGPC..."`
}

type ImagesOutputPort

type ImagesOutputPort struct {
	ImageName string
	ImagePath string
	CreatedAt time.Time
}

type TemperatureInputPort

type TemperatureInputPort struct {
	Temp string `json:"temp" example:"23.1"` // 温度
	Humi string `json:"humi" example:"67.0"` // 湿度
}

type TemperatureOutputPort

type TemperatureOutputPort struct {
	ID   uint   `json:"id" example:"1"`
	Temp string `json:"temp" example:"27.5"` // 温度
	Humi string `json:"humi" example:"55.0"` // 湿度
}

type TwiterOutputPort

type TwiterOutputPort struct {
	Message string
}

type TwitterInputPort

type TwitterInputPort struct {
	Message string `json:"message" example:"スリーネクストの投稿"`
}

Jump to

Keyboard shortcuts

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