Skip to content

Commit

Permalink
expose country and useable‘
Browse files Browse the repository at this point in the history
  • Loading branch information
zu1k committed Sep 5, 2020
1 parent a17b7f6 commit 5ef4144
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions pkg/proxy/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ type Base struct {
Port int `yaml:"port" json:"port"`
Type string `yaml:"type" json:"type"`
UDP bool `yaml:"udp,omitempty" json:"udp,omitempty"`
country string `yaml:"country,omitempty" json:"country,omitempty"`
useable bool `yaml:"useable,omitempty" json:"useable,omitempty"`
Country string `yaml:"country,omitempty" json:"country,omitempty"`
Useable bool `yaml:"useable,omitempty" json:"useable,omitempty"`
}

func (b *Base) TypeName() string {
Expand Down Expand Up @@ -35,19 +35,11 @@ func (b *Base) Clone() Base {
}

func (b *Base) SetUseable(useable bool) {
b.useable = useable
}

func (b *Base) Useable() bool {
return b.useable
b.Useable = useable
}

func (b *Base) SetCountry(country string) {
b.country = country
}

func (b *Base) Country() string {
return b.country
b.Country = country
}

type Proxy interface {
Expand All @@ -62,7 +54,5 @@ type Proxy interface {
BaseInfo() *Base
Clone() Proxy
SetUseable(useable bool)
Useable() bool
SetCountry(country string)
Country() string
}

0 comments on commit 5ef4144

Please sign in to comment.