rf

package
v0.0.0-...-b28803a Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config config

Functions

This section is empty.

Types

type AddFeedRequest

type AddFeedRequest struct {
	Name   string `json:"name"`
	URL    string `json:"url"`
	UserID int64
}

type Auth

type Auth struct {
	ID             int64     `json:"id"`
	Enabled        bool      `json:"enabled"`
	Deleted        bool      `json:"deleted"`
	CreatedAt      time.Time `json:"createdAt"`
	ModifiedAt     time.Time `json:"modifiedAt"`
	LastSignedInAt time.Time `json:"lastSignedInAt"`

	UserID int64 `json:"userID"`
	User   *User `json:"user"`

	BasicAuth *BasicAuth `json:"basicAuth"`

	Token string `json:"token"`
}

type BasicAuth

type BasicAuth struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type Feed

type Feed struct {
	ID           int64     `db:"feed_id"`
	Name         string    `db:"name"`
	URL          string    `db:"url"`
	Enabled      bool      `db:"-"`
	Deleted      bool      `db:"-"`
	CreatedAt    time.Time `db:"-"`
	ModifiedAt   time.Time `db:"-"`
	LastSyncedAt time.Time `db:"-"`

	UserID int64 `db:"user_id"`
}

type Migration

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

func NewMigration

func NewMigration(db *sql.DB, migrationPath string) (*Migration, error)

func (*Migration) Close

func (m *Migration) Close() error

func (*Migration) Down

func (m *Migration) Down() error

func (*Migration) Reset

func (m *Migration) Reset() error

func (*Migration) Up

func (m *Migration) Up() error

type SignInRequest

type SignInRequest struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type SignUpRequest

type SignUpRequest struct {
	Email    string `json:"email"`
	Password string `json:"password"`
	Name     string `json:"name"`
}

type User

type User struct {
	ID         int64     `json:"id"`
	Name       string    `json:"name"`
	CreatedAt  time.Time `json:"createdAt"`
	ModifiedAt time.Time `json:"modifiedAt"`
}

Directories

Path Synopsis
service
store

Jump to

Keyboard shortcuts

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