parent
09c1bd44c9
commit
a57ffd6ece
5 changed files with 40 additions and 14 deletions
@ -0,0 +1,5 @@ |
||||
package main |
||||
|
||||
type Endpoint interface { |
||||
IsEndpoint() bool |
||||
} |
@ -0,0 +1,17 @@ |
||||
package main |
||||
|
||||
func (p PostgresClient) IsEndpoint() bool { |
||||
return true |
||||
} |
||||
|
||||
func (s *Striker) SetFQDN(fqdn string) { |
||||
s.FQDN = fqdn |
||||
} |
||||
|
||||
func (s *Striker) AddEndpoint(e Endpoint) { |
||||
s.Endpoints = append(s.Endpoints, e) |
||||
} |
||||
|
||||
func (a *Anvil) AddStriker(s Striker) { |
||||
a.Strikers = append(a.Strikers, s) |
||||
} |
Loading…
Reference in new issue