store

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

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(clientID, clientSecret, redirectURI, userEmail string, isPublic bool) *Client

func (*Client) GetDomain

func (c *Client) GetDomain() string

func (*Client) GetID

func (c *Client) GetID() string

func (*Client) GetSecret

func (c *Client) GetSecret() string

func (*Client) GetUserID

func (c *Client) GetUserID() string

func (*Client) IsPublic

func (c *Client) IsPublic() bool

type Store

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

func NewClientStore

func NewClientStore(dbConn *gorm.DB) *Store

func (*Store) Create

func (s *Store) Create(ctx context.Context, client oauth2.ClientInfo) error

func (*Store) GetByID

func (s *Store) GetByID(ctx context.Context, id string) (oauth2.ClientInfo, error)

Jump to

Keyboard shortcuts

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