pb

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToContest added in v0.6.0

func ToContest(pbContest Contest) (core.Contest, error)

func ToKeyerSettings added in v0.15.0

func ToKeyerSettings(pbSettings Keyer) (core.KeyerSettings, error)

func ToQSO added in v0.6.0

func ToQSO(pbQSO QSO) (core.QSO, error)

func ToStation added in v0.6.0

func ToStation(pbStation Station) (core.Station, error)

Types

type Contest added in v0.6.0

type Contest struct {
	Name                    string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	EnterTheirNumber        bool                   `protobuf:"varint,2,opt,name=enter_their_number,json=enterTheirNumber,proto3" json:"enter_their_number,omitempty"`
	EnterTheirXchange       bool                   `protobuf:"varint,3,opt,name=enter_their_xchange,json=enterTheirXchange,proto3" json:"enter_their_xchange,omitempty"`
	RequireTheirXchange     bool                   `protobuf:"varint,4,opt,name=require_their_xchange,json=requireTheirXchange,proto3" json:"require_their_xchange,omitempty"`
	AllowMultiBand          bool                   `protobuf:"varint,5,opt,name=allow_multi_band,json=allowMultiBand,proto3" json:"allow_multi_band,omitempty"`
	AllowMultiMode          bool                   `protobuf:"varint,6,opt,name=allow_multi_mode,json=allowMultiMode,proto3" json:"allow_multi_mode,omitempty"`
	SameCountryPoints       int32                  `protobuf:"varint,7,opt,name=same_country_points,json=sameCountryPoints,proto3" json:"same_country_points,omitempty"`
	SameContinentPoints     int32                  `protobuf:"varint,8,opt,name=same_continent_points,json=sameContinentPoints,proto3" json:"same_continent_points,omitempty"`
	SpecificCountryPoints   int32                  `` /* 127-byte string literal not displayed */
	SpecificCountryPrefixes []string               `` /* 133-byte string literal not displayed */
	OtherPoints             int32                  `protobuf:"varint,11,opt,name=other_points,json=otherPoints,proto3" json:"other_points,omitempty"`
	Multis                  *Multis                `protobuf:"bytes,12,opt,name=multis,proto3" json:"multis,omitempty"`
	XchangeMultiPattern     string                 `protobuf:"bytes,13,opt,name=xchange_multi_pattern,json=xchangeMultiPattern,proto3" json:"xchange_multi_pattern,omitempty"`
	CountPerBand            bool                   `protobuf:"varint,14,opt,name=count_per_band,json=countPerBand,proto3" json:"count_per_band,omitempty"`
	CabrilloQsoTemplate     string                 `protobuf:"bytes,15,opt,name=cabrillo_qso_template,json=cabrilloQsoTemplate,proto3" json:"cabrillo_qso_template,omitempty"`
	CallHistoryFilename     string                 `protobuf:"bytes,16,opt,name=call_history_filename,json=callHistoryFilename,proto3" json:"call_history_filename,omitempty"`
	DefinitionYaml          string                 `protobuf:"bytes,18,opt,name=definition_yaml,json=definitionYaml,proto3" json:"definition_yaml,omitempty"`
	ExchangeValues          []string               `protobuf:"bytes,19,rep,name=exchange_values,json=exchangeValues,proto3" json:"exchange_values,omitempty"`
	GenerateSerialExchange  bool                   `` /* 131-byte string literal not displayed */
	CallHistoryFieldNames   []string               `` /* 129-byte string literal not displayed */
	QsosGoal                int32                  `protobuf:"varint,22,opt,name=qsos_goal,json=qsosGoal,proto3" json:"qsos_goal,omitempty"`
	PointsGoal              int32                  `protobuf:"varint,23,opt,name=points_goal,json=pointsGoal,proto3" json:"points_goal,omitempty"`
	MultisGoal              int32                  `protobuf:"varint,24,opt,name=multis_goal,json=multisGoal,proto3" json:"multis_goal,omitempty"`
	SprintOperation         bool                   `protobuf:"varint,25,opt,name=sprint_operation,json=sprintOperation,proto3" json:"sprint_operation,omitempty"`
	StartTime               *timestamppb.Timestamp `protobuf:"bytes,26,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	GenerateReport          bool                   `protobuf:"varint,27,opt,name=generate_report,json=generateReport,proto3" json:"generate_report,omitempty"`
	XXX_NoUnkeyedLiteral    struct{}               `json:"-"`
	XXX_unrecognized        []byte                 `json:"-"`
	XXX_sizecache           int32                  `json:"-"`
}

func ContestToPB added in v0.6.0

func ContestToPB(contest core.Contest) Contest

func (*Contest) Descriptor added in v0.6.0

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

func (*Contest) GetAllowMultiBand added in v0.6.0

func (m *Contest) GetAllowMultiBand() bool

func (*Contest) GetAllowMultiMode added in v0.6.0

func (m *Contest) GetAllowMultiMode() bool

func (*Contest) GetCabrilloQsoTemplate added in v0.6.1

func (m *Contest) GetCabrilloQsoTemplate() string

func (*Contest) GetCallHistoryFieldNames added in v0.10.0

func (m *Contest) GetCallHistoryFieldNames() []string

func (*Contest) GetCallHistoryFilename added in v0.9.0

func (m *Contest) GetCallHistoryFilename() string

func (*Contest) GetCountPerBand added in v0.6.0

func (m *Contest) GetCountPerBand() bool

func (*Contest) GetDefinitionYaml added in v0.10.0

func (m *Contest) GetDefinitionYaml() string

func (*Contest) GetEnterTheirNumber added in v0.6.0

func (m *Contest) GetEnterTheirNumber() bool

func (*Contest) GetEnterTheirXchange added in v0.6.0

func (m *Contest) GetEnterTheirXchange() bool

func (*Contest) GetExchangeValues added in v0.10.0

func (m *Contest) GetExchangeValues() []string

func (*Contest) GetGenerateReport added in v0.12.0

func (m *Contest) GetGenerateReport() bool

func (*Contest) GetGenerateSerialExchange added in v0.10.0

func (m *Contest) GetGenerateSerialExchange() bool

func (*Contest) GetMultis added in v0.6.0

func (m *Contest) GetMultis() *Multis

func (*Contest) GetMultisGoal added in v0.11.0

func (m *Contest) GetMultisGoal() int32

func (*Contest) GetName added in v0.6.0

func (m *Contest) GetName() string

func (*Contest) GetOtherPoints added in v0.6.0

func (m *Contest) GetOtherPoints() int32

func (*Contest) GetPointsGoal added in v0.11.0

func (m *Contest) GetPointsGoal() int32

func (*Contest) GetQsosGoal added in v0.11.0

func (m *Contest) GetQsosGoal() int32

func (*Contest) GetRequireTheirXchange added in v0.6.0

func (m *Contest) GetRequireTheirXchange() bool

func (*Contest) GetSameContinentPoints added in v0.6.0

func (m *Contest) GetSameContinentPoints() int32

func (*Contest) GetSameCountryPoints added in v0.6.0

func (m *Contest) GetSameCountryPoints() int32

func (*Contest) GetSpecificCountryPoints added in v0.6.0

func (m *Contest) GetSpecificCountryPoints() int32

func (*Contest) GetSpecificCountryPrefixes added in v0.6.0

func (m *Contest) GetSpecificCountryPrefixes() []string

func (*Contest) GetSprintOperation added in v0.12.0

func (m *Contest) GetSprintOperation() bool

func (*Contest) GetStartTime added in v0.12.0

func (m *Contest) GetStartTime() *timestamppb.Timestamp

func (*Contest) GetXchangeMultiPattern added in v0.6.0

func (m *Contest) GetXchangeMultiPattern() string

func (*Contest) ProtoMessage added in v0.6.0

func (*Contest) ProtoMessage()

func (*Contest) Reset added in v0.6.0

func (m *Contest) Reset()

func (*Contest) String added in v0.6.0

func (m *Contest) String() string

func (*Contest) XXX_DiscardUnknown added in v0.6.0

func (m *Contest) XXX_DiscardUnknown()

func (*Contest) XXX_Marshal added in v0.6.0

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

func (*Contest) XXX_Merge added in v0.6.0

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

func (*Contest) XXX_Size added in v0.6.0

func (m *Contest) XXX_Size() int

func (*Contest) XXX_Unmarshal added in v0.6.0

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

type Entry added in v0.6.0

type Entry struct {
	// Types that are valid to be assigned to Entry:
	//
	//	*Entry_Qso
	//	*Entry_Station
	//	*Entry_Contest
	//	*Entry_Keyer
	Entry                isEntry_Entry `protobuf_oneof:"entry"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*Entry) Descriptor added in v0.6.0

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

func (*Entry) GetContest added in v0.6.0

func (m *Entry) GetContest() *Contest

func (*Entry) GetEntry added in v0.6.0

func (m *Entry) GetEntry() isEntry_Entry

func (*Entry) GetKeyer added in v0.6.0

func (m *Entry) GetKeyer() *Keyer

func (*Entry) GetQso added in v0.6.0

func (m *Entry) GetQso() *QSO

func (*Entry) GetStation added in v0.6.0

func (m *Entry) GetStation() *Station

func (*Entry) ProtoMessage added in v0.6.0

func (*Entry) ProtoMessage()

func (*Entry) Reset added in v0.6.0

func (m *Entry) Reset()

func (*Entry) String added in v0.6.0

func (m *Entry) String() string

func (*Entry) XXX_DiscardUnknown added in v0.6.0

func (m *Entry) XXX_DiscardUnknown()

func (*Entry) XXX_Marshal added in v0.6.0

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

func (*Entry) XXX_Merge added in v0.6.0

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

func (*Entry) XXX_OneofWrappers added in v0.10.0

func (*Entry) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Entry) XXX_Size added in v0.6.0

func (m *Entry) XXX_Size() int

func (*Entry) XXX_Unmarshal added in v0.6.0

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

type Entry_Contest added in v0.6.0

type Entry_Contest struct {
	Contest *Contest `protobuf:"bytes,3,opt,name=contest,proto3,oneof"`
}

type Entry_Keyer added in v0.6.0

type Entry_Keyer struct {
	Keyer *Keyer `protobuf:"bytes,4,opt,name=keyer,proto3,oneof"`
}

type Entry_Qso added in v0.6.0

type Entry_Qso struct {
	Qso *QSO `protobuf:"bytes,1,opt,name=qso,proto3,oneof"`
}

type Entry_Station added in v0.6.0

type Entry_Station struct {
	Station *Station `protobuf:"bytes,2,opt,name=station,proto3,oneof"`
}

type FileInfo added in v0.6.0

type FileInfo struct {
	FormatVersion        int32    `protobuf:"varint,1,opt,name=format_version,json=formatVersion,proto3" json:"format_version,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*FileInfo) Descriptor added in v0.6.0

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

func (*FileInfo) GetFormatVersion added in v0.6.0

func (m *FileInfo) GetFormatVersion() int32

func (*FileInfo) ProtoMessage added in v0.6.0

func (*FileInfo) ProtoMessage()

func (*FileInfo) Reset added in v0.6.0

func (m *FileInfo) Reset()

func (*FileInfo) String added in v0.6.0

func (m *FileInfo) String() string

func (*FileInfo) XXX_DiscardUnknown added in v0.6.0

func (m *FileInfo) XXX_DiscardUnknown()

func (*FileInfo) XXX_Marshal added in v0.6.0

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

func (*FileInfo) XXX_Merge added in v0.6.0

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

func (*FileInfo) XXX_Size added in v0.6.0

func (m *FileInfo) XXX_Size() int

func (*FileInfo) XXX_Unmarshal added in v0.6.0

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

type Keyer added in v0.6.0

type Keyer struct {
	Wpm                  int32    `protobuf:"varint,1,opt,name=wpm,proto3" json:"wpm,omitempty"`
	SpMacros             []string `protobuf:"bytes,2,rep,name=sp_macros,json=spMacros,proto3" json:"sp_macros,omitempty"`
	RunMacros            []string `protobuf:"bytes,3,rep,name=run_macros,json=runMacros,proto3" json:"run_macros,omitempty"`
	SpLabels             []string `protobuf:"bytes,4,rep,name=sp_labels,json=spLabels,proto3" json:"sp_labels,omitempty"`
	RunLabels            []string `protobuf:"bytes,5,rep,name=run_labels,json=runLabels,proto3" json:"run_labels,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func KeyerSettingsToPB added in v0.15.0

func KeyerSettingsToPB(settings core.KeyerSettings) Keyer

func (*Keyer) Descriptor added in v0.6.0

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

func (*Keyer) GetRunLabels added in v0.20.0

func (m *Keyer) GetRunLabels() []string

func (*Keyer) GetRunMacros added in v0.6.0

func (m *Keyer) GetRunMacros() []string

func (*Keyer) GetSpLabels added in v0.20.0

func (m *Keyer) GetSpLabels() []string

func (*Keyer) GetSpMacros added in v0.6.0

func (m *Keyer) GetSpMacros() []string

func (*Keyer) GetWpm added in v0.6.0

func (m *Keyer) GetWpm() int32

func (*Keyer) ProtoMessage added in v0.6.0

func (*Keyer) ProtoMessage()

func (*Keyer) Reset added in v0.6.0

func (m *Keyer) Reset()

func (*Keyer) String added in v0.6.0

func (m *Keyer) String() string

func (*Keyer) XXX_DiscardUnknown added in v0.6.0

func (m *Keyer) XXX_DiscardUnknown()

func (*Keyer) XXX_Marshal added in v0.6.0

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

func (*Keyer) XXX_Merge added in v0.6.0

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

func (*Keyer) XXX_Size added in v0.6.0

func (m *Keyer) XXX_Size() int

func (*Keyer) XXX_Unmarshal added in v0.6.0

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

type Multis added in v0.6.0

type Multis struct {
	Dxcc                 bool     `protobuf:"varint,1,opt,name=dxcc,proto3" json:"dxcc,omitempty"`
	Wpx                  bool     `protobuf:"varint,2,opt,name=wpx,proto3" json:"wpx,omitempty"`
	Xchange              bool     `protobuf:"varint,3,opt,name=xchange,proto3" json:"xchange,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Multis) Descriptor added in v0.6.0

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

func (*Multis) GetDxcc added in v0.6.0

func (m *Multis) GetDxcc() bool

func (*Multis) GetWpx added in v0.6.0

func (m *Multis) GetWpx() bool

func (*Multis) GetXchange added in v0.6.0

func (m *Multis) GetXchange() bool

func (*Multis) ProtoMessage added in v0.6.0

func (*Multis) ProtoMessage()

func (*Multis) Reset added in v0.6.0

func (m *Multis) Reset()

func (*Multis) String added in v0.6.0

func (m *Multis) String() string

func (*Multis) XXX_DiscardUnknown added in v0.6.0

func (m *Multis) XXX_DiscardUnknown()

func (*Multis) XXX_Marshal added in v0.6.0

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

func (*Multis) XXX_Merge added in v0.6.0

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

func (*Multis) XXX_Size added in v0.6.0

func (m *Multis) XXX_Size() int

func (*Multis) XXX_Unmarshal added in v0.6.0

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

type QSO

type QSO struct {
	Callsign             string   `protobuf:"bytes,1,opt,name=callsign,proto3" json:"callsign,omitempty"`
	Timestamp            int64    `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Band                 string   `protobuf:"bytes,3,opt,name=band,proto3" json:"band,omitempty"`
	Mode                 string   `protobuf:"bytes,4,opt,name=mode,proto3" json:"mode,omitempty"`
	MyReport             string   `protobuf:"bytes,5,opt,name=my_report,json=myReport,proto3" json:"my_report,omitempty"`
	MyNumber             int32    `protobuf:"varint,6,opt,name=my_number,json=myNumber,proto3" json:"my_number,omitempty"`
	TheirReport          string   `protobuf:"bytes,7,opt,name=their_report,json=theirReport,proto3" json:"their_report,omitempty"`
	TheirNumber          int32    `protobuf:"varint,8,opt,name=their_number,json=theirNumber,proto3" json:"their_number,omitempty"`
	LogTimestamp         int64    `protobuf:"varint,9,opt,name=log_timestamp,json=logTimestamp,proto3" json:"log_timestamp,omitempty"`
	MyXchange            string   `protobuf:"bytes,10,opt,name=my_xchange,json=myXchange,proto3" json:"my_xchange,omitempty"`
	TheirXchange         string   `protobuf:"bytes,11,opt,name=their_xchange,json=theirXchange,proto3" json:"their_xchange,omitempty"`
	Frequency            float64  `protobuf:"fixed64,12,opt,name=frequency,proto3" json:"frequency,omitempty"`
	MyExchange           []string `protobuf:"bytes,14,rep,name=my_exchange,json=myExchange,proto3" json:"my_exchange,omitempty"`
	TheirExchange        []string `protobuf:"bytes,15,rep,name=their_exchange,json=theirExchange,proto3" json:"their_exchange,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func QSOToPB added in v0.6.0

func QSOToPB(qso core.QSO) QSO

func (*QSO) Descriptor

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

func (*QSO) GetBand

func (m *QSO) GetBand() string

func (*QSO) GetCallsign

func (m *QSO) GetCallsign() string

func (*QSO) GetFrequency added in v0.4.0

func (m *QSO) GetFrequency() float64

func (*QSO) GetLogTimestamp

func (m *QSO) GetLogTimestamp() int64

func (*QSO) GetMode

func (m *QSO) GetMode() string

func (*QSO) GetMyExchange added in v0.10.0

func (m *QSO) GetMyExchange() []string

func (*QSO) GetMyNumber

func (m *QSO) GetMyNumber() int32

func (*QSO) GetMyReport

func (m *QSO) GetMyReport() string

func (*QSO) GetMyXchange

func (m *QSO) GetMyXchange() string

func (*QSO) GetTheirExchange added in v0.10.0

func (m *QSO) GetTheirExchange() []string

func (*QSO) GetTheirNumber

func (m *QSO) GetTheirNumber() int32

func (*QSO) GetTheirReport

func (m *QSO) GetTheirReport() string

func (*QSO) GetTheirXchange

func (m *QSO) GetTheirXchange() string

func (*QSO) GetTimestamp

func (m *QSO) GetTimestamp() int64

func (*QSO) ProtoMessage

func (*QSO) ProtoMessage()

func (*QSO) Reset

func (m *QSO) Reset()

func (*QSO) String

func (m *QSO) String() string

func (*QSO) XXX_DiscardUnknown

func (m *QSO) XXX_DiscardUnknown()

func (*QSO) XXX_Marshal

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

func (*QSO) XXX_Merge

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

func (*QSO) XXX_Size

func (m *QSO) XXX_Size() int

func (*QSO) XXX_Unmarshal

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

type Station added in v0.6.0

type Station struct {
	Callsign             string   `protobuf:"bytes,1,opt,name=callsign,proto3" json:"callsign,omitempty"`
	Operator             string   `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
	Locator              string   `protobuf:"bytes,3,opt,name=locator,proto3" json:"locator,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func StationToPB added in v0.6.0

func StationToPB(station core.Station) Station

func (*Station) Descriptor added in v0.6.0

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

func (*Station) GetCallsign added in v0.6.0

func (m *Station) GetCallsign() string

func (*Station) GetLocator added in v0.6.0

func (m *Station) GetLocator() string

func (*Station) GetOperator added in v0.6.0

func (m *Station) GetOperator() string

func (*Station) ProtoMessage added in v0.6.0

func (*Station) ProtoMessage()

func (*Station) Reset added in v0.6.0

func (m *Station) Reset()

func (*Station) String added in v0.6.0

func (m *Station) String() string

func (*Station) XXX_DiscardUnknown added in v0.6.0

func (m *Station) XXX_DiscardUnknown()

func (*Station) XXX_Marshal added in v0.6.0

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

func (*Station) XXX_Merge added in v0.6.0

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

func (*Station) XXX_Size added in v0.6.0

func (m *Station) XXX_Size() int

func (*Station) XXX_Unmarshal added in v0.6.0

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

Jump to

Keyboard shortcuts

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