db

package
v0.0.0-...-ad55457 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DiscordUserCollection = "discord_users"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	FirestoreClient *firestore.Client
}

func NewClient

func NewClient(projectID string) (*Client, error)

func (*Client) DiscordTokensByContact

func (c *Client) DiscordTokensByContact(contact string) (map[string]string, error)

func (*Client) SetDiscordUserAuth

func (c *Client) SetDiscordUserAuth(userID string, refreshToken string) error

func (*Client) SetDiscordUserContact

func (c *Client) SetDiscordUserContact(userID string, ContactID string) error

Jump to

Keyboard shortcuts

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