users

package
v0.0.0-...-20a79f0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	UserID          string                       `json:"id"`
	UserAccessToken *helix.UserAccessCredentials `json:"user_access_token"`
}

User User object

type Users

type Users struct {
	// contains filtered or unexported fields
}

Users user service to interact with a user

func Client

func Client(tableName string) *Users

Client initialises users service

func (*Users) Get

func (u *Users) Get(
	ctx context.Context,
	userID string,
) (
	user *User,
	err error,
)

Get get user from dynamo

func (*Users) Put

func (u *Users) Put(
	ctx context.Context,
	input *User,
) (
	err error,
)

Put store user in dynamo

Jump to

Keyboard shortcuts

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