server

package
v0.0.0-...-f90a3a6 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Name     string
	Mount    int
	Document string
}

type Branch

type Branch struct {
	Name    string
	Address string
	Token   string
}

type Central

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

func (*Central) AddAccount

func (c *Central) AddAccount(operationData string, response *bool) error

Método remoto para agregar una cuenta a la base de datos

func (*Central) AddMoney

func (c *Central) AddMoney(operationData string, response *bool) error

Método remoto para realziar una consignación

func (*Central) DeleteAccount

func (c *Central) DeleteAccount(operationData string, response *bool) error

Método remoto para eliminar una cuenta

func (*Central) GetBalance

func (c *Central) GetBalance(operationData string, response *int) error

Método remoto para obtener el monto de la cuenta de un usuario

func (*Central) ModifyAccount

func (c *Central) ModifyAccount(operationData string, response *bool) error

Método remoto para modificar una cuenta

func (*Central) StartServer

func (c *Central) StartServer(port string)

Método para inciar el servidor

func (*Central) ValidateBranch

func (c *Central) ValidateBranch(token string, response *bool) error

Método remoto para validar una sucursal que empieza operaciones

func (*Central) Withdrawals

func (c *Central) Withdrawals(operationData string, response *bool) error

Método para retirar dinero

type Database

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

type OperationData

type OperationData struct {
	Document      string
	MountToAdd    string
	MountToRemove string
	NewDocument   string
}

Jump to

Keyboard shortcuts

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