rpc_client

package
v0.0.0-...-95ac96d Latest Latest
Warning

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

Go to latest
Published: Jul 3, 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 MikapodLocalStorageService

type MikapodLocalStorageService struct {
	Client *rpc.Client
}

func New

func (*MikapodLocalStorageService) AddTimeSeriesDatum

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

func (*MikapodLocalStorageService) DeleteTimeSeriesData

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

func (*MikapodLocalStorageService) Greet

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

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

func (*MikapodLocalStorageService) ListTimeSeriesData

func (s *MikapodLocalStorageService) 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