models

package
v0.0.0-...-ccfe39c Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Db

func Db() *gorm.DB

Types

type Response

type Response struct {
	Status  int         `json:"status,omitempty"`
	Message string      `json:"message,omitempty"`
	Error   string      `json:"error,omitempty"`
	Data    interface{} `json:"data,omitempty"`
}

type Senator

type Senator struct {
	FullName    string
	State       string
	District    string
	PhoneNumber string
	// contains filtered or unexported fields
}

func (Senator) GetAll

func (s Senator) GetAll() ([]Senator, error)

GetAll - returns an array containing all the senators

Jump to

Keyboard shortcuts

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