mirror of
https://github.com/onyx-and-iris/xair-cli.git
synced 2026-02-03 23:17:47 +00:00
21 lines
306 B
Go
21 lines
306 B
Go
package xair
|
|
|
|
type Comp struct {
|
|
client *Client
|
|
baseAddress string
|
|
}
|
|
|
|
func newCompForStrip(c *Client) *Comp {
|
|
return &Comp{
|
|
client: c,
|
|
baseAddress: c.addressMap["strip"],
|
|
}
|
|
}
|
|
|
|
func newCompForBus(c *Client) *Comp {
|
|
return &Comp{
|
|
client: c,
|
|
baseAddress: c.addressMap["bus"],
|
|
}
|
|
}
|