server

package
v0.0.0-...-d38997b Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve() error

Serve to start a server.

Types

type Account

type Account struct {
	ID   int    `json:"id"`
	Type string `json:"type"`
	Name string `json:"name"`
}

Account ...

type CreateTransactionRequest

type CreateTransactionRequest struct {
	Type          storage.TransactionType `json:"type" validate:"required"`
	Amount        float64                 `json:"amount" validate:"required"`
	FromAccountID uint                    `json:"fromAccountID"`
	ToAccountID   uint                    `json:"toAccountID"`
	SubCategory   string                  `json:"subCategory" validate:"required"`
	TxTime        time.Time               `json:"txTime" validate:"required"`
}

CreateTransactionRequest ...

type ListTransactionsResponse

type ListTransactionsResponse struct {
	Items []Transaction `json:"items"`
}

type Server

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

Server ...

type Transaction

type Transaction struct {
	Type        string  `json:"type"`
	Amount      float64 `json:"amount"`
	SubCategory string  `json:"subCategory"`
	Category    string  `json:"category"`
	Account     Account `json:"account"`
}

Transaction ...

Jump to

Keyboard shortcuts

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