divisionjson

package
v0.0.0-...-c2300e3 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package divisionjson ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func NewStore

func NewStore(log *logger.Logger) (*Store, error)

NewStore constructs the api for data access.

func (*Store) QueryByID

func (s *Store) QueryByID(ctx context.Context, id int) (division.Division, error)

func (*Store) QueryByParentID

func (s *Store) QueryByParentID(ctx context.Context, id int) ([]division.Division, error)

func (*Store) QueryLevel1s

func (s *Store) QueryLevel1s(ctx context.Context) ([]division.Division, error)

Jump to

Keyboard shortcuts

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