proto

package
v5.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterBaselineServer

func RegisterBaselineServer(s *grpc.Server, srv BaselineServer)

Types

type BaselineClient

type BaselineClient interface {
	// rpc GetBaselineValue(BaselineValueRequest) returns (BaselineValue);
	GetBaselineValues(ctx context.Context, in *BaselineValueRequest, opts ...grpc.CallOption) (*BaselineValues, error)
}

BaselineClient is the client API for Baseline service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewBaselineClient

func NewBaselineClient(cc *grpc.ClientConn) BaselineClient

type BaselineServer

type BaselineServer interface {
	// rpc GetBaselineValue(BaselineValueRequest) returns (BaselineValue);
	GetBaselineValues(context.Context, *BaselineValueRequest) (*BaselineValues, error)
}

BaselineServer is the server API for Baseline service.

type BaselineValue

type BaselineValue struct {
	Time                 string   `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
	Value                float64  `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"`
	ValueLower           float64  `protobuf:"fixed64,3,opt,name=value_lower,json=valueLower,proto3" json:"value_lower,omitempty"`
	ValueUpper           float64  `protobuf:"fixed64,4,opt,name=value_upper,json=valueUpper,proto3" json:"value_upper,omitempty"`
	Avg                  float64  `protobuf:"fixed64,5,opt,name=avg,proto3" json:"avg,omitempty"`
	Std                  float64  `protobuf:"fixed64,6,opt,name=std,proto3" json:"std,omitempty"`
	Median               float64  `protobuf:"fixed64,7,opt,name=median,proto3" json:"median,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BaselineValue) Descriptor

func (*BaselineValue) Descriptor() ([]byte, []int)

func (*BaselineValue) GetAvg

func (m *BaselineValue) GetAvg() float64

func (*BaselineValue) GetMedian

func (m *BaselineValue) GetMedian() float64

func (*BaselineValue) GetStd

func (m *BaselineValue) GetStd() float64

func (*BaselineValue) GetTime

func (m *BaselineValue) GetTime() string

func (*BaselineValue) GetValue

func (m *BaselineValue) GetValue() float64

func (*BaselineValue) GetValueLower

func (m *BaselineValue) GetValueLower() float64

func (*BaselineValue) GetValueUpper

func (m *BaselineValue) GetValueUpper() float64

func (*BaselineValue) ProtoMessage

func (*BaselineValue) ProtoMessage()

func (*BaselineValue) Reset

func (m *BaselineValue) Reset()

func (*BaselineValue) String

func (m *BaselineValue) String() string

func (*BaselineValue) XXX_DiscardUnknown

func (m *BaselineValue) XXX_DiscardUnknown()

func (*BaselineValue) XXX_Marshal

func (m *BaselineValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BaselineValue) XXX_Merge

func (m *BaselineValue) XXX_Merge(src proto.Message)

func (*BaselineValue) XXX_Size

func (m *BaselineValue) XXX_Size() int

func (*BaselineValue) XXX_Unmarshal

func (m *BaselineValue) XXX_Unmarshal(b []byte) error

type BaselineValueRequest

type BaselineValueRequest struct {
	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	FactId               int64    `protobuf:"varint,2,opt,name=fact_id,json=factId,proto3" json:"fact_id,omitempty"`
	SituationId          int64    `protobuf:"varint,3,opt,name=situation_id,json=situationId,proto3" json:"situation_id,omitempty"`
	SituationInstanceId  int64    `protobuf:"varint,4,opt,name=situation_instance_id,json=situationInstanceId,proto3" json:"situation_instance_id,omitempty"`
	Time                 string   `protobuf:"bytes,5,opt,name=time,proto3" json:"time,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BaselineValueRequest) Descriptor

func (*BaselineValueRequest) Descriptor() ([]byte, []int)

func (*BaselineValueRequest) GetFactId

func (m *BaselineValueRequest) GetFactId() int64

func (*BaselineValueRequest) GetId

func (m *BaselineValueRequest) GetId() int64

func (*BaselineValueRequest) GetSituationId

func (m *BaselineValueRequest) GetSituationId() int64

func (*BaselineValueRequest) GetSituationInstanceId

func (m *BaselineValueRequest) GetSituationInstanceId() int64

func (*BaselineValueRequest) GetTime

func (m *BaselineValueRequest) GetTime() string

func (*BaselineValueRequest) ProtoMessage

func (*BaselineValueRequest) ProtoMessage()

func (*BaselineValueRequest) Reset

func (m *BaselineValueRequest) Reset()

func (*BaselineValueRequest) String

func (m *BaselineValueRequest) String() string

func (*BaselineValueRequest) XXX_DiscardUnknown

func (m *BaselineValueRequest) XXX_DiscardUnknown()

func (*BaselineValueRequest) XXX_Marshal

func (m *BaselineValueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BaselineValueRequest) XXX_Merge

func (m *BaselineValueRequest) XXX_Merge(src proto.Message)

func (*BaselineValueRequest) XXX_Size

func (m *BaselineValueRequest) XXX_Size() int

func (*BaselineValueRequest) XXX_Unmarshal

func (m *BaselineValueRequest) XXX_Unmarshal(b []byte) error

type BaselineValues

type BaselineValues struct {
	Values               map[string]*BaselineValue `` /* 153-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

func (*BaselineValues) Descriptor

func (*BaselineValues) Descriptor() ([]byte, []int)

func (*BaselineValues) GetValues

func (m *BaselineValues) GetValues() map[string]*BaselineValue

func (*BaselineValues) ProtoMessage

func (*BaselineValues) ProtoMessage()

func (*BaselineValues) Reset

func (m *BaselineValues) Reset()

func (*BaselineValues) String

func (m *BaselineValues) String() string

func (*BaselineValues) XXX_DiscardUnknown

func (m *BaselineValues) XXX_DiscardUnknown()

func (*BaselineValues) XXX_Marshal

func (m *BaselineValues) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BaselineValues) XXX_Merge

func (m *BaselineValues) XXX_Merge(src proto.Message)

func (*BaselineValues) XXX_Size

func (m *BaselineValues) XXX_Size() int

func (*BaselineValues) XXX_Unmarshal

func (m *BaselineValues) XXX_Unmarshal(b []byte) error

type UnimplementedBaselineServer

type UnimplementedBaselineServer struct {
}

UnimplementedBaselineServer can be embedded to have forward compatible implementations.

func (*UnimplementedBaselineServer) GetBaselineValues

Jump to

Keyboard shortcuts

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