Documentation
¶
Index ¶
- type Client
- func (c *Client) AddDefaultNetworkActiveListener(ctx context.Context, arg0 int64) error
- func (c *Client) BindProcessToNetwork(ctx context.Context, arg0 int64) (bool, error)
- func (c *Client) CreateSocketKeepalive(ctx context.Context, arg0 int64, arg1 int64, arg2 int64, arg3 int64, ...) (int64, error)
- func (c *Client) GetActiveNetwork(ctx context.Context) (int64, error)
- func (c *Client) GetActiveNetworkInfo(ctx context.Context) (int64, error)
- func (c *Client) GetAllNetworkInfo(ctx context.Context) (int64, error)
- func (c *Client) GetAllNetworks(ctx context.Context) (int64, error)
- func (c *Client) GetBackgroundDataSetting(ctx context.Context) (bool, error)
- func (c *Client) GetBoundNetworkForProcess(ctx context.Context) (int64, error)
- func (c *Client) GetConnectionOwnerUid(ctx context.Context, arg0 int32, arg1 int64, arg2 int64) (int32, error)
- func (c *Client) GetDefaultProxy(ctx context.Context) (int64, error)
- func (c *Client) GetLinkProperties(ctx context.Context, arg0 int64) (int64, error)
- func (c *Client) GetMultipathPreference(ctx context.Context, arg0 int64) (int32, error)
- func (c *Client) GetNetworkCapabilities(ctx context.Context, arg0 int64) (int64, error)
- func (c *Client) GetNetworkInfo1(ctx context.Context, arg0 int64) (int64, error)
- func (c *Client) GetNetworkInfo1_1(ctx context.Context, arg0 int32) (int64, error)
- func (c *Client) GetNetworkPreference(ctx context.Context) (int32, error)
- func (c *Client) GetNetworkWatchlistConfigHash(ctx context.Context) (int64, error)
- func (c *Client) GetProcessDefaultNetwork(ctx context.Context) (int64, error)
- func (c *Client) GetRestrictBackgroundStatus(ctx context.Context) (int32, error)
- func (c *Client) IsActiveNetworkMetered(ctx context.Context) (bool, error)
- func (c *Client) IsDefaultNetworkActive(ctx context.Context) (bool, error)
- func (c *Client) IsNetworkTypeValid(ctx context.Context, arg0 int32) (bool, error)
- func (c *Client) RegisterDefaultNetworkCallback(ctx context.Context, arg0 int64) error
- func (c *Client) RegisterNetworkCallback2(ctx context.Context, arg0 int64, arg1 int64) error
- func (c *Client) RegisterNetworkCallback2_1(ctx context.Context, arg0 int64, arg1 int64) error
- func (c *Client) ReleaseNetworkRequest(ctx context.Context, arg0 int64) error
- func (c *Client) RemoveDefaultNetworkActiveListener(ctx context.Context, arg0 int64) error
- func (c *Client) ReportBadNetwork(ctx context.Context, arg0 int64) error
- func (c *Client) ReportNetworkConnectivity(ctx context.Context, arg0 int64, arg1 bool) error
- func (c *Client) RequestBandwidthUpdate(ctx context.Context, arg0 int64) (bool, error)
- func (c *Client) RequestNetwork2(ctx context.Context, arg0 int64, arg1 int64) error
- func (c *Client) RequestNetwork2_1(ctx context.Context, arg0 int64, arg1 int64) error
- func (c *Client) RequestNetwork3_2(ctx context.Context, arg0 int64, arg1 int64, arg2 int32) error
- func (c *Client) SetNetworkPreference(ctx context.Context, arg0 int32) error
- func (c *Client) SetProcessDefaultNetwork(ctx context.Context, arg0 int64) (bool, error)
- func (c *Client) UnregisterNetworkCallback1(ctx context.Context, arg0 int64) error
- func (c *Client) UnregisterNetworkCallback1_1(ctx context.Context, arg0 int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the gRPC ConnectivityManagerService client.
func NewClient ¶
func NewClient(cc grpc.ClientConnInterface) *Client
NewClient creates a new net client.
func (*Client) AddDefaultNetworkActiveListener ¶
AddDefaultNetworkActiveListener calls the AddDefaultNetworkActiveListener RPC.
func (*Client) BindProcessToNetwork ¶
BindProcessToNetwork calls the BindProcessToNetwork RPC.
func (*Client) CreateSocketKeepalive ¶
func (c *Client) CreateSocketKeepalive(ctx context.Context, arg0 int64, arg1 int64, arg2 int64, arg3 int64, arg4 int64, arg5 int64) (int64, error)
CreateSocketKeepalive calls the CreateSocketKeepalive RPC.
func (*Client) GetActiveNetwork ¶
GetActiveNetwork calls the GetActiveNetwork RPC.
func (*Client) GetActiveNetworkInfo ¶
GetActiveNetworkInfo calls the GetActiveNetworkInfo RPC.
func (*Client) GetAllNetworkInfo ¶
GetAllNetworkInfo calls the GetAllNetworkInfo RPC.
func (*Client) GetAllNetworks ¶
GetAllNetworks calls the GetAllNetworks RPC.
func (*Client) GetBackgroundDataSetting ¶
GetBackgroundDataSetting calls the GetBackgroundDataSetting RPC.
func (*Client) GetBoundNetworkForProcess ¶
GetBoundNetworkForProcess calls the GetBoundNetworkForProcess RPC.
func (*Client) GetConnectionOwnerUid ¶
func (c *Client) GetConnectionOwnerUid(ctx context.Context, arg0 int32, arg1 int64, arg2 int64) (int32, error)
GetConnectionOwnerUid calls the GetConnectionOwnerUid RPC.
func (*Client) GetDefaultProxy ¶
GetDefaultProxy calls the GetDefaultProxy RPC.
func (*Client) GetLinkProperties ¶
GetLinkProperties calls the GetLinkProperties RPC.
func (*Client) GetMultipathPreference ¶
GetMultipathPreference calls the GetMultipathPreference RPC.
func (*Client) GetNetworkCapabilities ¶
GetNetworkCapabilities calls the GetNetworkCapabilities RPC.
func (*Client) GetNetworkInfo1 ¶
GetNetworkInfo1 calls the GetNetworkInfo1 RPC.
func (*Client) GetNetworkInfo1_1 ¶
GetNetworkInfo1_1 calls the GetNetworkInfo1_1 RPC.
func (*Client) GetNetworkPreference ¶
GetNetworkPreference calls the GetNetworkPreference RPC.
func (*Client) GetNetworkWatchlistConfigHash ¶
GetNetworkWatchlistConfigHash calls the GetNetworkWatchlistConfigHash RPC.
func (*Client) GetProcessDefaultNetwork ¶
GetProcessDefaultNetwork calls the GetProcessDefaultNetwork RPC.
func (*Client) GetRestrictBackgroundStatus ¶
GetRestrictBackgroundStatus calls the GetRestrictBackgroundStatus RPC.
func (*Client) IsActiveNetworkMetered ¶
IsActiveNetworkMetered calls the IsActiveNetworkMetered RPC.
func (*Client) IsDefaultNetworkActive ¶
IsDefaultNetworkActive calls the IsDefaultNetworkActive RPC.
func (*Client) IsNetworkTypeValid ¶
IsNetworkTypeValid calls the IsNetworkTypeValid RPC.
func (*Client) RegisterDefaultNetworkCallback ¶
RegisterDefaultNetworkCallback calls the RegisterDefaultNetworkCallback RPC.
func (*Client) RegisterNetworkCallback2 ¶
RegisterNetworkCallback2 calls the RegisterNetworkCallback2 RPC.
func (*Client) RegisterNetworkCallback2_1 ¶
RegisterNetworkCallback2_1 calls the RegisterNetworkCallback2_1 RPC.
func (*Client) ReleaseNetworkRequest ¶
ReleaseNetworkRequest calls the ReleaseNetworkRequest RPC.
func (*Client) RemoveDefaultNetworkActiveListener ¶
RemoveDefaultNetworkActiveListener calls the RemoveDefaultNetworkActiveListener RPC.
func (*Client) ReportBadNetwork ¶
ReportBadNetwork calls the ReportBadNetwork RPC.
func (*Client) ReportNetworkConnectivity ¶
ReportNetworkConnectivity calls the ReportNetworkConnectivity RPC.
func (*Client) RequestBandwidthUpdate ¶
RequestBandwidthUpdate calls the RequestBandwidthUpdate RPC.
func (*Client) RequestNetwork2 ¶
RequestNetwork2 calls the RequestNetwork2 RPC.
func (*Client) RequestNetwork2_1 ¶
RequestNetwork2_1 calls the RequestNetwork2_1 RPC.
func (*Client) RequestNetwork3_2 ¶
RequestNetwork3_2 calls the RequestNetwork3_2 RPC.
func (*Client) SetNetworkPreference ¶
SetNetworkPreference calls the SetNetworkPreference RPC.
func (*Client) SetProcessDefaultNetwork ¶
SetProcessDefaultNetwork calls the SetProcessDefaultNetwork RPC.
func (*Client) UnregisterNetworkCallback1 ¶
UnregisterNetworkCallback1 calls the UnregisterNetworkCallback1 RPC.