rpc_client

package
v0.0.0-...-22510d0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MikapodStorageService

type MikapodStorageService struct {
	Client *rpc.Client
}

func New

func New(addr string) *MikapodStorageService

func (*MikapodStorageService) AddTimeSeriesDatum

func (s *MikapodStorageService) AddTimeSeriesDatum(datum *TimeSeriesDatumCreateRequest) (bool, error)

func (*MikapodStorageService) DeleteTimeSeriesData

func (s *MikapodStorageService) DeleteTimeSeriesData(pks []int64) (*TimeSeriesDatumDeleteResponse, error)

func (*MikapodStorageService) Greet

func (s *MikapodStorageService) Greet(name string) (*string, error)

Perform a synchronous call on our remote service for the `Greet` RPC.

func (*MikapodStorageService) ListTimeSeriesData

func (s *MikapodStorageService) ListTimeSeriesData() (*TimeSeriesDatumListResponse, error)

type TimeSeriesDatumCreateRequest

type TimeSeriesDatumCreateRequest struct {
	Instrument int32   `json:"instrument"`
	Value      float32 `json:"value"`
	Timestamp  int64   `json:"timestamp"`
}

type TimeSeriesDatumCreateResponse

type TimeSeriesDatumCreateResponse struct {
	Status bool `json:"status"`
}

type TimeSeriesDatumDeleteRequest

type TimeSeriesDatumDeleteRequest struct {
	Pks []int64
}

type TimeSeriesDatumDeleteResponse

type TimeSeriesDatumDeleteResponse struct {
	Status bool `json:"status"`
}

type TimeSeriesDatumListItemResponse

type TimeSeriesDatumListItemResponse struct {
	Id         int64
	Instrument int32   `json:"instrument"`
	Value      float32 `json:"value"`
	Timestamp  int64   `json:"timestamp"`
}

type TimeSeriesDatumListRequest

type TimeSeriesDatumListRequest struct{}

type TimeSeriesDatumListResponse

type TimeSeriesDatumListResponse struct {
	Results []*TimeSeriesDatumListItemResponse `json:"results"`
}

Jump to

Keyboard shortcuts

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