proto

package
v5.4.6 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Baseline_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Baseline",
	HandlerType: (*BaselineServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetBaselineValues",
			Handler:    _Baseline_GetBaselineValues_Handler,
		},
		{
			MethodName: "BuildBaselineValues",
			Handler:    _Baseline_BuildBaselineValues_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/baseline.proto",
}

Baseline_ServiceDesc is the grpc.ServiceDesc for Baseline service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_proto_baseline_proto protoreflect.FileDescriptor

Functions

func RegisterBaselineServer

func RegisterBaselineServer(s grpc.ServiceRegistrar, srv BaselineServer)

Types

type BaselineClient

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

BaselineClient is the client API for Baseline service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewBaselineClient

func NewBaselineClient(cc grpc.ClientConnInterface) BaselineClient

type BaselineServer

type BaselineServer interface {
	// rpc GetBaselineValue(BaselineValueRequest) returns (BaselineValue)
	GetBaselineValues(context.Context, *BaselineValueRequest) (*BaselineValues, error)
	BuildBaselineValues(context.Context, *BuildBaselineRequest) (*empty.Empty, error)
	// contains filtered or unexported methods
}

BaselineServer is the server API for Baseline service. All implementations must embed UnimplementedBaselineServer for forward compatibility

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"`
	// contains filtered or unexported fields
}

func (*BaselineValue) Descriptor deprecated

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

Deprecated: Use BaselineValue.ProtoReflect.Descriptor instead.

func (*BaselineValue) GetAvg

func (x *BaselineValue) GetAvg() float64

func (*BaselineValue) GetMedian

func (x *BaselineValue) GetMedian() float64

func (*BaselineValue) GetStd

func (x *BaselineValue) GetStd() float64

func (*BaselineValue) GetTime

func (x *BaselineValue) GetTime() string

func (*BaselineValue) GetValue

func (x *BaselineValue) GetValue() float64

func (*BaselineValue) GetValueLower

func (x *BaselineValue) GetValueLower() float64

func (*BaselineValue) GetValueUpper

func (x *BaselineValue) GetValueUpper() float64

func (*BaselineValue) ProtoMessage

func (*BaselineValue) ProtoMessage()

func (*BaselineValue) ProtoReflect added in v5.1.0

func (x *BaselineValue) ProtoReflect() protoreflect.Message

func (*BaselineValue) Reset

func (x *BaselineValue) Reset()

func (*BaselineValue) String

func (x *BaselineValue) String() string

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"`
	// contains filtered or unexported fields
}

func (*BaselineValueRequest) Descriptor deprecated

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

Deprecated: Use BaselineValueRequest.ProtoReflect.Descriptor instead.

func (*BaselineValueRequest) GetFactId

func (x *BaselineValueRequest) GetFactId() int64

func (*BaselineValueRequest) GetId

func (x *BaselineValueRequest) GetId() int64

func (*BaselineValueRequest) GetSituationId

func (x *BaselineValueRequest) GetSituationId() int64

func (*BaselineValueRequest) GetSituationInstanceId

func (x *BaselineValueRequest) GetSituationInstanceId() int64

func (*BaselineValueRequest) GetTime

func (x *BaselineValueRequest) GetTime() string

func (*BaselineValueRequest) ProtoMessage

func (*BaselineValueRequest) ProtoMessage()

func (*BaselineValueRequest) ProtoReflect added in v5.1.0

func (x *BaselineValueRequest) ProtoReflect() protoreflect.Message

func (*BaselineValueRequest) Reset

func (x *BaselineValueRequest) Reset()

func (*BaselineValueRequest) String

func (x *BaselineValueRequest) String() string

type BaselineValues

type BaselineValues struct {
	Values map[string]*BaselineValue `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*BaselineValues) Descriptor deprecated

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

Deprecated: Use BaselineValues.ProtoReflect.Descriptor instead.

func (*BaselineValues) GetValues

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

func (*BaselineValues) ProtoMessage

func (*BaselineValues) ProtoMessage()

func (*BaselineValues) ProtoReflect added in v5.1.0

func (x *BaselineValues) ProtoReflect() protoreflect.Message

func (*BaselineValues) Reset

func (x *BaselineValues) Reset()

func (*BaselineValues) String

func (x *BaselineValues) String() string

type BuildBaselineRequest added in v5.1.0

type BuildBaselineRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*BuildBaselineRequest) Descriptor deprecated added in v5.1.0

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

Deprecated: Use BuildBaselineRequest.ProtoReflect.Descriptor instead.

func (*BuildBaselineRequest) GetId added in v5.1.0

func (x *BuildBaselineRequest) GetId() int64

func (*BuildBaselineRequest) ProtoMessage added in v5.1.0

func (*BuildBaselineRequest) ProtoMessage()

func (*BuildBaselineRequest) ProtoReflect added in v5.1.0

func (x *BuildBaselineRequest) ProtoReflect() protoreflect.Message

func (*BuildBaselineRequest) Reset added in v5.1.0

func (x *BuildBaselineRequest) Reset()

func (*BuildBaselineRequest) String added in v5.1.0

func (x *BuildBaselineRequest) String() string

type UnimplementedBaselineServer

type UnimplementedBaselineServer struct {
}

UnimplementedBaselineServer must be embedded to have forward compatible implementations.

func (UnimplementedBaselineServer) BuildBaselineValues added in v5.1.0

func (UnimplementedBaselineServer) GetBaselineValues

type UnsafeBaselineServer added in v5.1.0

type UnsafeBaselineServer interface {
	// contains filtered or unexported methods
}

UnsafeBaselineServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BaselineServer will result in compilation errors.

Jump to

Keyboard shortcuts

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