Documentation ¶
Overview ¶
Package rpcclient contains the default options for TTN gRPC clients.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDialOptions ¶
func DefaultDialOptions(ctx context.Context) []grpc.DialOption
DefaultDialOptions for gRPC clients
func OAuth2 ¶
func OAuth2(ctx context.Context, tokenURL, clientID, clientSecret string, scopes []string, insecure bool) credentials.PerRPCCredentials
OAuth2 returns per RPC client credentials using the OAuth Client Credentials flow. The token is being refreshed as-needed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.