rpcclient

package
v0.0.0-...-60b8695 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL