xrpc

package
v0.0.0-...-1eb5c16 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package xrpc provides a simple wrapper around the xrpc client with some helper functions for authentication

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetXRPCClient

func GetXRPCClient(ctx context.Context) (*xrpc.Client, error)

GetXRPCClient returns an XRPC client for the ATProto server with Authentication from the ATP_AUTH environment variable

func RefreshAuth

func RefreshAuth(ctx context.Context, client *xrpc.Client, clientMux *sync.RWMutex) error

RefreshAuth refreshes the auth token for the client

Types

This section is empty.

Jump to

Keyboard shortcuts

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