repository

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Guild added in v1.4.0

type Guild struct {
	ID     string `firestore:"id"`
	SQList []SQ   `firestore:"sqList"`
}

type Member added in v1.4.0

type Member struct {
	UserID     string      `firestore:"userID"`
	UserName   string      `firestore:"userName"`
	MemberType MemberTypes `firestore:"memberType"`
}

type MemberTypes added in v1.4.0

type MemberTypes int
const (
	MemberTypesParticipant MemberTypes = 1
	MemberTypesTemporary   MemberTypes = 2
)

type Repository

type Repository interface {
	GetVersion(ctx context.Context) (*version, error)
	GetGuild(ctx context.Context, guildID string) (*Guild, error)
	GetSQList(ctx context.Context, guild *Guild) ([]SQ, error)
	PutSQList(ctx context.Context, guild *Guild, sqList []string) error
	GetSQMembers(ctx context.Context, guild *Guild, sqTitle string) ([]Member, error)
	PutSQMembers(ctx context.Context, guild *Guild, sqTitle string, members []Member) error
}

func New

func New(ctx context.Context) (Repository, error)

type SQ added in v1.4.0

type SQ struct {
	Title   string   `firestore:"title"`
	Members []Member `firestore:"members"`
}

Jump to

Keyboard shortcuts

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