Documentation ¶
Index ¶
- type BridgeInfo
- type Client
- func (cl *Client) AddBridge(secret string, cookie []byte, host string) (err error)
- func (cl *Client) GetBridges(ubmsg, ubsig []byte) (bridges []BridgeInfo, err error)
- func (cl *Client) GetClientInfo() (ui ClientInfo, err error)
- func (cl *Client) GetTicket(username, password string) (ubmsg, ubsig []byte, details TicketResp, err error)
- func (cl *Client) GetTicketKey(tier string) (tkey *rsa.PublicKey, err error)
- func (cl *Client) GetTier(username, password string) (tier string, err error)
- func (cl *Client) RedeemTicket(tier string, ubmsg, ubsig []byte) (err error)
- type ClientInfo
- type PaymentTx
- type TicketResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BridgeInfo ¶
BridgeInfo describes a bridge
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a binder client.
func NewClient ¶
NewClient creates a new domain-fronting binder client with the given frontDomain and realDomain. frontDomain should start with `https://`.
func (*Client) GetBridges ¶
func (cl *Client) GetBridges(ubmsg, ubsig []byte) (bridges []BridgeInfo, err error)
GetBridges obtains a set of bridges.
func (*Client) GetClientInfo ¶
func (cl *Client) GetClientInfo() (ui ClientInfo, err error)
GetClientInfo checks user info
func (*Client) GetTicket ¶
func (cl *Client) GetTicket(username, password string) (ubmsg, ubsig []byte, details TicketResp, err error)
GetTicket obtains an authentication ticket.
func (*Client) GetTicketKey ¶
GetTicketKey obtains the remote ticketing key. TODO caching, gossip?
type ClientInfo ¶
ClientInfo describes user IP and country.
Click to show internal directories.
Click to hide internal directories.