comfo

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package comfo is a generated twirp stub package. This code was generated with github.com/twitchtv/twirp/protoc-gen-twirp v7.1.0.

It is generated from these files:

comfo.proto

Index

Constants

View Source
const ComfoPathPrefix = "/twirp/comfo.api.Comfo/"

ComfoPathPrefix is a convenience constant that could used to identify URL paths. Should be used with caution, it only matches routes generated by Twirp Go clients, that add a "/twirp" prefix by default, and use CamelCase service and method names. More info: https://twitchtv.github.io/twirp/docs/routing.html

Variables

View Source
var File_comfo_proto protoreflect.FileDescriptor

Functions

func WriteError

func WriteError(resp http.ResponseWriter, err error)

WriteError writes an HTTP response with a valid Twirp error format (code, msg, meta). Useful outside of the Twirp server (e.g. http middleware), but does not trigger hooks. If err is not a twirp.Error, it will get wrapped with twirp.InternalErrorWith(err)

Types

type BootInfo

type BootInfo struct {
	MajorVersion uint32 `protobuf:"varint,1,opt,name=MajorVersion,proto3" json:"MajorVersion,omitempty"`
	MinorVersion uint32 `protobuf:"varint,2,opt,name=MinorVersion,proto3" json:"MinorVersion,omitempty"`
	BetaVersion  uint32 `protobuf:"varint,3,opt,name=BetaVersion,proto3" json:"BetaVersion,omitempty"`
	DeviceName   string `protobuf:"bytes,4,opt,name=DeviceName,proto3" json:"DeviceName,omitempty"`
	// contains filtered or unexported fields
}

func (*BootInfo) Descriptor deprecated

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

Deprecated: Use BootInfo.ProtoReflect.Descriptor instead.

func (*BootInfo) GetBetaVersion

func (x *BootInfo) GetBetaVersion() uint32

func (*BootInfo) GetDeviceName

func (x *BootInfo) GetDeviceName() string

func (*BootInfo) GetMajorVersion

func (x *BootInfo) GetMajorVersion() uint32

func (*BootInfo) GetMinorVersion

func (x *BootInfo) GetMinorVersion() uint32

func (*BootInfo) ProtoMessage

func (*BootInfo) ProtoMessage()

func (*BootInfo) ProtoReflect

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

func (*BootInfo) Reset

func (x *BootInfo) Reset()

func (*BootInfo) String

func (x *BootInfo) String() string

type Bypass

type Bypass struct {
	Factor     uint32 `protobuf:"varint,1,opt,name=Factor,proto3" json:"Factor,omitempty"`
	Level      uint32 `protobuf:"varint,2,opt,name=Level,proto3" json:"Level,omitempty"`
	Correction uint32 `protobuf:"varint,3,opt,name=Correction,proto3" json:"Correction,omitempty"`
	SummerMode bool   `protobuf:"varint,4,opt,name=SummerMode,proto3" json:"SummerMode,omitempty"`
	// contains filtered or unexported fields
}

func (*Bypass) Descriptor deprecated

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

Deprecated: Use Bypass.ProtoReflect.Descriptor instead.

func (*Bypass) GetCorrection

func (x *Bypass) GetCorrection() uint32

func (*Bypass) GetFactor

func (x *Bypass) GetFactor() uint32

func (*Bypass) GetLevel

func (x *Bypass) GetLevel() uint32

func (*Bypass) GetSummerMode

func (x *Bypass) GetSummerMode() bool

func (*Bypass) ProtoMessage

func (*Bypass) ProtoMessage()

func (*Bypass) ProtoReflect

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

func (*Bypass) Reset

func (x *Bypass) Reset()

func (*Bypass) String

func (x *Bypass) String() string

type Comfo

type Comfo interface {
	// rpc GetBootInfo(Noop) returns (BootInfo);
	GetTemps(context.Context, *Noop) (*Temps, error)

	// rpc GetBypass(Noop) returns (Bypass);
	GetFans(context.Context, *Noop) (*Fans, error)

	GetFanProfiles(context.Context, *Noop) (*FanProfiles, error)

	// rpc GetHours(Noop) returns (Hours);
	GetErrors(context.Context, *Noop) (*Errors, error)

	SetFanSpeed(context.Context, *FanSpeedTarget) (*FanSpeedModified, error)

	SetComfortTemp(context.Context, *ComfortTarget) (*ComfortModified, error)

	SetFanProfile(context.Context, *FanProfileTarget) (*FanProfileModified, error)

	FlushCache(context.Context, *FlushCacheRequest) (*FlushCacheResponse, error)
}

func NewComfoJSONClient

func NewComfoJSONClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) Comfo

NewComfoJSONClient creates a JSON client that implements the Comfo interface. It communicates using JSON and can be configured with a custom HTTPClient.

func NewComfoProtobufClient

func NewComfoProtobufClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) Comfo

NewComfoProtobufClient creates a Protobuf client that implements the Comfo interface. It communicates using Protobuf and can be configured with a custom HTTPClient.

type ComfortModified

type ComfortModified struct {
	Modified     bool   `protobuf:"varint,1,opt,name=Modified,proto3" json:"Modified,omitempty"`         // Whether the comfort temperature was modified or not
	OriginalTemp uint32 `protobuf:"varint,2,opt,name=OriginalTemp,proto3" json:"OriginalTemp,omitempty"` // The temperature before this modification
	TargetTemp   uint32 `protobuf:"varint,3,opt,name=TargetTemp,proto3" json:"TargetTemp,omitempty"`     // Target temperature sent in the request
	ReqTime      string `protobuf:"bytes,4,opt,name=ReqTime,proto3" json:"ReqTime,omitempty"`            // Total time spent processing the back-end request
	// contains filtered or unexported fields
}

func (*ComfortModified) Descriptor deprecated

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

Deprecated: Use ComfortModified.ProtoReflect.Descriptor instead.

func (*ComfortModified) GetModified

func (x *ComfortModified) GetModified() bool

func (*ComfortModified) GetOriginalTemp

func (x *ComfortModified) GetOriginalTemp() uint32

func (*ComfortModified) GetReqTime

func (x *ComfortModified) GetReqTime() string

func (*ComfortModified) GetTargetTemp

func (x *ComfortModified) GetTargetTemp() uint32

func (*ComfortModified) ProtoMessage

func (*ComfortModified) ProtoMessage()

func (*ComfortModified) ProtoReflect

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

func (*ComfortModified) Reset

func (x *ComfortModified) Reset()

func (*ComfortModified) String

func (x *ComfortModified) String() string

type ComfortTarget

type ComfortTarget struct {
	ComfortTemp uint32 `protobuf:"varint,1,opt,name=ComfortTemp,proto3" json:"ComfortTemp,omitempty"` // Desired temperature for the heat exchanger
	// contains filtered or unexported fields
}

func (*ComfortTarget) Descriptor deprecated

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

Deprecated: Use ComfortTarget.ProtoReflect.Descriptor instead.

func (*ComfortTarget) GetComfortTemp

func (x *ComfortTarget) GetComfortTemp() uint32

func (*ComfortTarget) ProtoMessage

func (*ComfortTarget) ProtoMessage()

func (*ComfortTarget) ProtoReflect

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

func (*ComfortTarget) Reset

func (x *ComfortTarget) Reset()

func (*ComfortTarget) String

func (x *ComfortTarget) String() string

type Errors

type Errors struct {
	Filter bool `protobuf:"varint,1,opt,name=Filter,proto3" json:"Filter,omitempty"`
	// contains filtered or unexported fields
}

func (*Errors) Descriptor deprecated

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

Deprecated: Use Errors.ProtoReflect.Descriptor instead.

func (*Errors) GetFilter

func (x *Errors) GetFilter() bool

func (*Errors) ProtoMessage

func (*Errors) ProtoMessage()

func (*Errors) ProtoReflect

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

func (*Errors) Reset

func (x *Errors) Reset()

func (*Errors) String

func (x *Errors) String() string

type FanProfileModified

type FanProfileModified struct {
	Modified      bool   `protobuf:"varint,1,opt,name=Modified,proto3" json:"Modified,omitempty"`           // Whether the mode's speed was modified or not
	OriginalSpeed uint32 `protobuf:"varint,2,opt,name=OriginalSpeed,proto3" json:"OriginalSpeed,omitempty"` // The fan speed before this modification
	TargetSpeed   uint32 `protobuf:"varint,3,opt,name=TargetSpeed,proto3" json:"TargetSpeed,omitempty"`     // Target speed sent in the request
	ReqTime       string `protobuf:"bytes,4,opt,name=ReqTime,proto3" json:"ReqTime,omitempty"`              // Total time spent processing the back-end request
	// contains filtered or unexported fields
}

func (*FanProfileModified) Descriptor deprecated

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

Deprecated: Use FanProfileModified.ProtoReflect.Descriptor instead.

func (*FanProfileModified) GetModified

func (x *FanProfileModified) GetModified() bool

func (*FanProfileModified) GetOriginalSpeed

func (x *FanProfileModified) GetOriginalSpeed() uint32

func (*FanProfileModified) GetReqTime

func (x *FanProfileModified) GetReqTime() string

func (*FanProfileModified) GetTargetSpeed

func (x *FanProfileModified) GetTargetSpeed() uint32

func (*FanProfileModified) ProtoMessage

func (*FanProfileModified) ProtoMessage()

func (*FanProfileModified) ProtoReflect

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

func (*FanProfileModified) Reset

func (x *FanProfileModified) Reset()

func (*FanProfileModified) String

func (x *FanProfileModified) String() string

type FanProfileTarget

type FanProfileTarget struct {
	Mode        uint32 `protobuf:"varint,1,opt,name=Mode,proto3" json:"Mode,omitempty"`
	TargetSpeed uint32 `protobuf:"varint,2,opt,name=TargetSpeed,proto3" json:"TargetSpeed,omitempty"`
	// contains filtered or unexported fields
}

func (*FanProfileTarget) Descriptor deprecated

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

Deprecated: Use FanProfileTarget.ProtoReflect.Descriptor instead.

func (*FanProfileTarget) GetMode

func (x *FanProfileTarget) GetMode() uint32

func (*FanProfileTarget) GetTargetSpeed

func (x *FanProfileTarget) GetTargetSpeed() uint32

func (*FanProfileTarget) ProtoMessage

func (*FanProfileTarget) ProtoMessage()

func (*FanProfileTarget) ProtoReflect

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

func (*FanProfileTarget) Reset

func (x *FanProfileTarget) Reset()

func (*FanProfileTarget) String

func (x *FanProfileTarget) String() string

type FanProfiles

type FanProfiles struct {
	OutAway     uint32 `protobuf:"varint,1,opt,name=OutAway,proto3" json:"OutAway,omitempty"`
	OutLow      uint32 `protobuf:"varint,2,opt,name=OutLow,proto3" json:"OutLow,omitempty"`
	OutMid      uint32 `protobuf:"varint,3,opt,name=OutMid,proto3" json:"OutMid,omitempty"`
	OutHigh     uint32 `protobuf:"varint,4,opt,name=OutHigh,proto3" json:"OutHigh,omitempty"`
	InFanActive bool   `protobuf:"varint,5,opt,name=InFanActive,proto3" json:"InFanActive,omitempty"`
	InAway      uint32 `protobuf:"varint,6,opt,name=InAway,proto3" json:"InAway,omitempty"`
	InLow       uint32 `protobuf:"varint,7,opt,name=InLow,proto3" json:"InLow,omitempty"`
	InMid       uint32 `protobuf:"varint,8,opt,name=InMid,proto3" json:"InMid,omitempty"`
	InHigh      uint32 `protobuf:"varint,9,opt,name=InHigh,proto3" json:"InHigh,omitempty"`
	CurrentOut  uint32 `protobuf:"varint,10,opt,name=CurrentOut,proto3" json:"CurrentOut,omitempty"`
	CurrentIn   uint32 `protobuf:"varint,11,opt,name=CurrentIn,proto3" json:"CurrentIn,omitempty"`
	CurrentMode uint32 `protobuf:"varint,12,opt,name=CurrentMode,proto3" json:"CurrentMode,omitempty"`
	// contains filtered or unexported fields
}

func (*FanProfiles) Descriptor deprecated

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

Deprecated: Use FanProfiles.ProtoReflect.Descriptor instead.

func (*FanProfiles) GetCurrentIn

func (x *FanProfiles) GetCurrentIn() uint32

func (*FanProfiles) GetCurrentMode

func (x *FanProfiles) GetCurrentMode() uint32

func (*FanProfiles) GetCurrentOut

func (x *FanProfiles) GetCurrentOut() uint32

func (*FanProfiles) GetInAway

func (x *FanProfiles) GetInAway() uint32

func (*FanProfiles) GetInFanActive

func (x *FanProfiles) GetInFanActive() bool

func (*FanProfiles) GetInHigh

func (x *FanProfiles) GetInHigh() uint32

func (*FanProfiles) GetInLow

func (x *FanProfiles) GetInLow() uint32

func (*FanProfiles) GetInMid

func (x *FanProfiles) GetInMid() uint32

func (*FanProfiles) GetOutAway

func (x *FanProfiles) GetOutAway() uint32

func (*FanProfiles) GetOutHigh

func (x *FanProfiles) GetOutHigh() uint32

func (*FanProfiles) GetOutLow

func (x *FanProfiles) GetOutLow() uint32

func (*FanProfiles) GetOutMid

func (x *FanProfiles) GetOutMid() uint32

func (*FanProfiles) ProtoMessage

func (*FanProfiles) ProtoMessage()

func (*FanProfiles) ProtoReflect

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

func (*FanProfiles) Reset

func (x *FanProfiles) Reset()

func (*FanProfiles) String

func (x *FanProfiles) String() string

type FanSpeedModified

type FanSpeedModified struct {
	Modified      bool   `protobuf:"varint,1,opt,name=Modified,proto3" json:"Modified,omitempty"`           // Whether the fan speed was modified or not
	OriginalSpeed uint32 `protobuf:"varint,2,opt,name=OriginalSpeed,proto3" json:"OriginalSpeed,omitempty"` // The fan speed before this modification
	TargetSpeed   uint32 `protobuf:"varint,3,opt,name=TargetSpeed,proto3" json:"TargetSpeed,omitempty"`     // Target speed sent in the request
	ReqTime       string `protobuf:"bytes,4,opt,name=ReqTime,proto3" json:"ReqTime,omitempty"`              // Total time spent processing the back-end request
	// contains filtered or unexported fields
}

func (*FanSpeedModified) Descriptor deprecated

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

Deprecated: Use FanSpeedModified.ProtoReflect.Descriptor instead.

func (*FanSpeedModified) GetModified

func (x *FanSpeedModified) GetModified() bool

func (*FanSpeedModified) GetOriginalSpeed

func (x *FanSpeedModified) GetOriginalSpeed() uint32

func (*FanSpeedModified) GetReqTime

func (x *FanSpeedModified) GetReqTime() string

func (*FanSpeedModified) GetTargetSpeed

func (x *FanSpeedModified) GetTargetSpeed() uint32

func (*FanSpeedModified) ProtoMessage

func (*FanSpeedModified) ProtoMessage()

func (*FanSpeedModified) ProtoReflect

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

func (*FanSpeedModified) Reset

func (x *FanSpeedModified) Reset()

func (*FanSpeedModified) String

func (x *FanSpeedModified) String() string

type FanSpeedTarget

type FanSpeedTarget struct {
	Abs uint32 `protobuf:"varint,1,opt,name=Abs,proto3" json:"Abs,omitempty"` // must be between 1 and 4
	Rel bool   `protobuf:"varint,2,opt,name=Rel,proto3" json:"Rel,omitempty"` // False = down, True = up
	// contains filtered or unexported fields
}

Abs and Rel are mutually exclusive

func (*FanSpeedTarget) Descriptor deprecated

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

Deprecated: Use FanSpeedTarget.ProtoReflect.Descriptor instead.

func (*FanSpeedTarget) GetAbs

func (x *FanSpeedTarget) GetAbs() uint32

func (*FanSpeedTarget) GetRel

func (x *FanSpeedTarget) GetRel() bool

func (*FanSpeedTarget) ProtoMessage

func (*FanSpeedTarget) ProtoMessage()

func (*FanSpeedTarget) ProtoReflect

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

func (*FanSpeedTarget) Reset

func (x *FanSpeedTarget) Reset()

func (*FanSpeedTarget) String

func (x *FanSpeedTarget) String() string

type Fans

type Fans struct {
	InPercent  uint32 `protobuf:"varint,1,opt,name=InPercent,proto3" json:"InPercent,omitempty"`
	OutPercent uint32 `protobuf:"varint,2,opt,name=OutPercent,proto3" json:"OutPercent,omitempty"`
	InSpeed    uint32 `protobuf:"varint,3,opt,name=InSpeed,proto3" json:"InSpeed,omitempty"`
	OutSpeed   uint32 `protobuf:"varint,4,opt,name=OutSpeed,proto3" json:"OutSpeed,omitempty"`
	// contains filtered or unexported fields
}

func (*Fans) Descriptor deprecated

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

Deprecated: Use Fans.ProtoReflect.Descriptor instead.

func (*Fans) GetInPercent

func (x *Fans) GetInPercent() uint32

func (*Fans) GetInSpeed

func (x *Fans) GetInSpeed() uint32

func (*Fans) GetOutPercent

func (x *Fans) GetOutPercent() uint32

func (*Fans) GetOutSpeed

func (x *Fans) GetOutSpeed() uint32

func (*Fans) ProtoMessage

func (*Fans) ProtoMessage()

func (*Fans) ProtoReflect

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

func (*Fans) Reset

func (x *Fans) Reset()

func (*Fans) String

func (x *Fans) String() string

type FlushCacheRequest

type FlushCacheRequest struct {

	// The type of cache to flush. One of all/fans/temps/profiles.
	Type string `protobuf:"bytes,1,opt,name=Type,proto3" json:"Type,omitempty"` // required
	// contains filtered or unexported fields
}

func (*FlushCacheRequest) Descriptor deprecated

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

Deprecated: Use FlushCacheRequest.ProtoReflect.Descriptor instead.

func (*FlushCacheRequest) GetType

func (x *FlushCacheRequest) GetType() string

func (*FlushCacheRequest) ProtoMessage

func (*FlushCacheRequest) ProtoMessage()

func (*FlushCacheRequest) ProtoReflect

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

func (*FlushCacheRequest) Reset

func (x *FlushCacheRequest) Reset()

func (*FlushCacheRequest) String

func (x *FlushCacheRequest) String() string

type FlushCacheResponse

type FlushCacheResponse struct {
	Success bool   `protobuf:"varint,1,opt,name=Success,proto3" json:"Success,omitempty"` // Whether the flush operation was successful
	ReqTime string `protobuf:"bytes,2,opt,name=ReqTime,proto3" json:"ReqTime,omitempty"`  // Total time spent processing the back-end request
	// contains filtered or unexported fields
}

func (*FlushCacheResponse) Descriptor deprecated

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

Deprecated: Use FlushCacheResponse.ProtoReflect.Descriptor instead.

func (*FlushCacheResponse) GetReqTime

func (x *FlushCacheResponse) GetReqTime() string

func (*FlushCacheResponse) GetSuccess

func (x *FlushCacheResponse) GetSuccess() bool

func (*FlushCacheResponse) ProtoMessage

func (*FlushCacheResponse) ProtoMessage()

func (*FlushCacheResponse) ProtoReflect

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

func (*FlushCacheResponse) Reset

func (x *FlushCacheResponse) Reset()

func (*FlushCacheResponse) String

func (x *FlushCacheResponse) String() string

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

HTTPClient is the interface used by generated clients to send HTTP requests. It is fulfilled by *(net/http).Client, which is sufficient for most users. Users can provide their own implementation for special retry policies.

HTTPClient implementations should not follow redirects. Redirects are automatically disabled if *(net/http).Client is passed to client constructors. See the withoutRedirects function in this file for more details.

type Hours

type Hours struct {
	FanAway      uint32 `protobuf:"varint,1,opt,name=FanAway,proto3" json:"FanAway,omitempty"`
	FanLow       uint32 `protobuf:"varint,2,opt,name=FanLow,proto3" json:"FanLow,omitempty"`
	FanMid       uint32 `protobuf:"varint,3,opt,name=FanMid,proto3" json:"FanMid,omitempty"`
	FanHigh      uint32 `protobuf:"varint,4,opt,name=FanHigh,proto3" json:"FanHigh,omitempty"`
	FrostProtect uint32 `protobuf:"varint,5,opt,name=FrostProtect,proto3" json:"FrostProtect,omitempty"`
	Reheating    uint32 `protobuf:"varint,6,opt,name=Reheating,proto3" json:"Reheating,omitempty"`
	BypassOpen   uint32 `protobuf:"varint,7,opt,name=BypassOpen,proto3" json:"BypassOpen,omitempty"`
	Filter       uint32 `protobuf:"varint,8,opt,name=Filter,proto3" json:"Filter,omitempty"`
	// contains filtered or unexported fields
}

func (*Hours) Descriptor deprecated

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

Deprecated: Use Hours.ProtoReflect.Descriptor instead.

func (*Hours) GetBypassOpen

func (x *Hours) GetBypassOpen() uint32

func (*Hours) GetFanAway

func (x *Hours) GetFanAway() uint32

func (*Hours) GetFanHigh

func (x *Hours) GetFanHigh() uint32

func (*Hours) GetFanLow

func (x *Hours) GetFanLow() uint32

func (*Hours) GetFanMid

func (x *Hours) GetFanMid() uint32

func (*Hours) GetFilter

func (x *Hours) GetFilter() uint32

func (*Hours) GetFrostProtect

func (x *Hours) GetFrostProtect() uint32

func (*Hours) GetReheating

func (x *Hours) GetReheating() uint32

func (*Hours) ProtoMessage

func (*Hours) ProtoMessage()

func (*Hours) ProtoReflect

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

func (*Hours) Reset

func (x *Hours) Reset()

func (*Hours) String

func (x *Hours) String() string

type Noop

type Noop struct {
	// contains filtered or unexported fields
}

func (*Noop) Descriptor deprecated

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

Deprecated: Use Noop.ProtoReflect.Descriptor instead.

func (*Noop) ProtoMessage

func (*Noop) ProtoMessage()

func (*Noop) ProtoReflect

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

func (*Noop) Reset

func (x *Noop) Reset()

func (*Noop) String

func (x *Noop) String() string

type Temps

type Temps struct {
	Comfort     float32 `protobuf:"fixed32,1,opt,name=Comfort,proto3" json:"Comfort,omitempty"`
	OutsideAir  float32 `protobuf:"fixed32,2,opt,name=OutsideAir,proto3" json:"OutsideAir,omitempty"`
	SupplyAir   float32 `protobuf:"fixed32,3,opt,name=SupplyAir,proto3" json:"SupplyAir,omitempty"`
	OutAir      float32 `protobuf:"fixed32,4,opt,name=OutAir,proto3" json:"OutAir,omitempty"`
	ExhaustAir  float32 `protobuf:"fixed32,5,opt,name=ExhaustAir,proto3" json:"ExhaustAir,omitempty"`
	GeoHeat     float32 `protobuf:"fixed32,6,opt,name=GeoHeat,proto3" json:"GeoHeat,omitempty"`
	Reheating   float32 `protobuf:"fixed32,7,opt,name=Reheating,proto3" json:"Reheating,omitempty"`
	KitchenHood float32 `protobuf:"fixed32,8,opt,name=KitchenHood,proto3" json:"KitchenHood,omitempty"`
	// contains filtered or unexported fields
}

func (*Temps) Descriptor deprecated

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

Deprecated: Use Temps.ProtoReflect.Descriptor instead.

func (*Temps) GetComfort

func (x *Temps) GetComfort() float32

func (*Temps) GetExhaustAir

func (x *Temps) GetExhaustAir() float32

func (*Temps) GetGeoHeat

func (x *Temps) GetGeoHeat() float32

func (*Temps) GetKitchenHood

func (x *Temps) GetKitchenHood() float32

func (*Temps) GetOutAir

func (x *Temps) GetOutAir() float32

func (*Temps) GetOutsideAir

func (x *Temps) GetOutsideAir() float32

func (*Temps) GetReheating

func (x *Temps) GetReheating() float32

func (*Temps) GetSupplyAir

func (x *Temps) GetSupplyAir() float32

func (*Temps) ProtoMessage

func (*Temps) ProtoMessage()

func (*Temps) ProtoReflect

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

func (*Temps) Reset

func (x *Temps) Reset()

func (*Temps) String

func (x *Temps) String() string

type TwirpServer

type TwirpServer interface {
	http.Handler

	// ServiceDescriptor returns gzipped bytes describing the .proto file that
	// this service was generated from. Once unzipped, the bytes can be
	// unmarshalled as a
	// github.com/golang/protobuf/protoc-gen-go/descriptor.FileDescriptorProto.
	//
	// The returned integer is the index of this particular service within that
	// FileDescriptorProto's 'Service' slice of ServiceDescriptorProtos. This is a
	// low-level field, expected to be used for reflection.
	ServiceDescriptor() ([]byte, int)

	// ProtocGenTwirpVersion is the semantic version string of the version of
	// twirp used to generate this file.
	ProtocGenTwirpVersion() string

	// PathPrefix returns the HTTP URL path prefix for all methods handled by this
	// service. This can be used with an HTTP mux to route Twirp requests.
	// The path prefix is in the form: "/<prefix>/<package>.<Service>/"
	// that is, everything in a Twirp route except for the <Method> at the end.
	PathPrefix() string
}

TwirpServer is the interface generated server structs will support: they're HTTP handlers with additional methods for accessing metadata about the service. Those accessors are a low-level API for building reflection tools. Most people can think of TwirpServers as just http.Handlers.

func NewComfoServer

func NewComfoServer(svc Comfo, opts ...interface{}) TwirpServer

NewComfoServer builds a TwirpServer that can be used as an http.Handler to handle HTTP requests that are routed to the right method in the provided svc implementation. The opts are twirp.ServerOption modifiers, for example twirp.WithServerHooks(hooks).

Jump to

Keyboard shortcuts

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