person_ctl

package
v0.0.0-...-753c707 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Mongo    = "MONGODB"
	MySQL    = "MYSQL"
	PostGres = "POSTGRES"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	DB     person_repo.Repository
	Config *person_config.Config
}

func NewController

func NewController(config *person_config.Config) (*Controller, error)

func (*Controller) CreateAccount

func (c *Controller) CreateAccount(newPerson *person.Person) (any, error)

func (*Controller) Login

func (c *Controller) Login(phoneNumber string, password string, category string) (*person.Person, error)

Jump to

Keyboard shortcuts

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