Documentation
¶
Overview ¶
Package wire preserves the retained fields and field numbers of the legacy unversioned remote-signer Protobuf envelopes. Unknown fields are skipped so current Go and Python runner clients can send their full messages. The retained schemas come from livepeer/go-livepeer/net/lp_rpc.proto at bd645a09266833fb859053445d9ac85846330756, authored by Josh Allmann, Yondon Fu, Nico Vergauwen, and Angie Ramirez. This codec is implemented here.
Index ¶
- func EncodeAuthToken(a AuthToken) []byte
- func EncodeExpiration(e ExpirationParams) []byte
- func EncodeOrchestratorInfo(o OrchestratorInfo) []byte
- func EncodePayment(p Payment) []byte
- func EncodePrice(p PriceInfo) []byte
- func EncodeSegData(s SegData) []byte
- func EncodeTicketParams(p TicketParams) []byte
- type AuthToken
- type ExpirationParams
- type OrchestratorInfo
- type Payment
- type PriceInfo
- type SegData
- type TicketParams
- type TicketPayerParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeAuthToken ¶
func EncodeExpiration ¶
func EncodeExpiration(e ExpirationParams) []byte
func EncodeOrchestratorInfo ¶
func EncodeOrchestratorInfo(o OrchestratorInfo) []byte
func EncodePayment ¶
func EncodePrice ¶
func EncodeSegData ¶
func EncodeTicketParams ¶
func EncodeTicketParams(p TicketParams) []byte
Types ¶
type AuthToken ¶
func DecodeAuthToken ¶
type ExpirationParams ¶
func DecodeExpiration ¶
func DecodeExpiration(data []byte) (ExpirationParams, error)
type OrchestratorInfo ¶
type OrchestratorInfo struct {
Transcoder string
TicketParams TicketParams
Price PriceInfo
Address []byte
Auth AuthToken
}
func DecodeOrchestratorInfo ¶
func DecodeOrchestratorInfo(data []byte) (OrchestratorInfo, error)
type Payment ¶
type Payment struct {
TicketParams TicketParams
PayerAddress []byte
Expiration ExpirationParams
PayerParams []TicketPayerParams
ExpectedPrice PriceInfo
}
func DecodePayment ¶
type PriceInfo ¶
type PriceInfo struct {
PricePerUnit int64
UnitsPerPrice int64 // Legacy field name: pixelsPerUnit; live/fixed use one billable unit.
}
func DecodePrice ¶
type SegData ¶
func DecodeSegData ¶
type TicketParams ¶
type TicketParams struct {
Recipient, FaceValue, WinProb, RecipientRandHash, Seed, ExpirationBlock []byte
Expiration ExpirationParams
}
func DecodeTicketParams ¶
func DecodeTicketParams(data []byte) (TicketParams, error)