data

package
v0.0.0-...-32f65d2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateMemberResponse

type CreateMemberResponse struct{ Id int64 }

type CreateTeamResponse

type CreateTeamResponse struct{ Id int64 }

type DB

type DB struct {
	DB *sql.DB
}

func NewDB

func NewDB(DBURL string, ctx context.Context) (DB, error)

func (DB) AddMemberToTeam

func (d DB) AddMemberToTeam(teamId int64, memberId int64, ctx context.Context) error

func (DB) CreateMember

func (d DB) CreateMember(
	name string,
	email *string,
	ctx context.Context,
) (*CreateMemberResponse, error)

func (DB) CreateTeam

func (d DB) CreateTeam(
	teamName string,
	organizationId int64,
	ctx context.Context,
) (*CreateTeamResponse, error)

func (DB) GetOrganizationIdByAuthId

func (d DB) GetOrganizationIdByAuthId(authId string, ctx context.Context) (int64, error)

Jump to

Keyboard shortcuts

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