repository

package
v0.0.0-...-b6cb40f Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

type ProvinceRepositoryJSON

type ProvinceRepositoryJSON struct {
	Province map[string]domain.Province
}

ProvinceRepository is a struct that implements ProvinceRepository interface

func (*ProvinceRepositoryJSON) GetAll

func (pr *ProvinceRepositoryJSON) GetAll() ([]domain.Province, error)

GetAll is a method that returns all province

func (*ProvinceRepositoryJSON) GetByID

func (pr *ProvinceRepositoryJSON) GetByID(id string) (*domain.Province, error)

GetByID is a method that returns the province with the specified ID.

func (*ProvinceRepositoryJSON) ParseJSON

func (pr *ProvinceRepositoryJSON) ParseJSON(provJson []byte) (*[]domain.Province, error)

Jump to

Keyboard shortcuts

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