Documentation ¶
Index ¶
- type BitmaskMobile
- func (bm *BitmaskMobile) GetAllBridges(location, port, transport, transportType string) (*mobilemodels.Bridges, error)
- func (bm *BitmaskMobile) GetAllGateways(location, port, transport string) (*mobilemodels.Gateways, error)
- func (bm *BitmaskMobile) GetBestBridge() (string, error)
- func (bm *BitmaskMobile) GetBestGateway() (string, error)
- func (bm *BitmaskMobile) GetOpenVPNCert() (string, error)
- func (bm *BitmaskMobile) GetProvider() (*models.ModelsProvider, error)
- func (bm *BitmaskMobile) GetService() (*models.ModelsEIPService, error)
- func (bm *BitmaskMobile) SetCountryCode(cc string)
- func (bm *BitmaskMobile) SetIntroducer(introducerUrl string) error
- func (bm *BitmaskMobile) SetResolveWithDoH(resolveWithDoH bool)
- func (bm *BitmaskMobile) SetUseTls(useTls bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitmaskMobile ¶
type BitmaskMobile struct {
// contains filtered or unexported fields
}
func NewBitmaskMobile ¶
func NewBitmaskMobile(url string, countryCode string, store mobilemodels.Store) (*BitmaskMobile, error)
func (*BitmaskMobile) GetAllBridges ¶
func (bm *BitmaskMobile) GetAllBridges(location, port, transport, transportType string) (*mobilemodels.Bridges, error)
func (*BitmaskMobile) GetAllGateways ¶
func (bm *BitmaskMobile) GetAllGateways(location, port, transport string) (*mobilemodels.Gateways, error)
func (*BitmaskMobile) GetBestBridge ¶
func (bm *BitmaskMobile) GetBestBridge() (string, error)
func (*BitmaskMobile) GetBestGateway ¶
func (bm *BitmaskMobile) GetBestGateway() (string, error)
func (*BitmaskMobile) GetOpenVPNCert ¶
func (bm *BitmaskMobile) GetOpenVPNCert() (string, error)
func (*BitmaskMobile) GetProvider ¶
func (bm *BitmaskMobile) GetProvider() (*models.ModelsProvider, error)
GetProvider returns the essential provider infos, including urls to the API and supported API version
func (*BitmaskMobile) GetService ¶
func (bm *BitmaskMobile) GetService() (*models.ModelsEIPService, error)
GetService returns service information, including available locations and common tunnel config
func (*BitmaskMobile) SetCountryCode ¶
func (bm *BitmaskMobile) SetCountryCode(cc string)
func (*BitmaskMobile) SetIntroducer ¶
func (bm *BitmaskMobile) SetIntroducer(introducerUrl string) error
func (*BitmaskMobile) SetResolveWithDoH ¶
func (bm *BitmaskMobile) SetResolveWithDoH(resolveWithDoH bool)
func (*BitmaskMobile) SetUseTls ¶
func (bm *BitmaskMobile) SetUseTls(useTls bool)
Click to show internal directories.
Click to hide internal directories.