address

package
v0.0.0-...-ce1b770 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressOverview

type AddressOverview struct {
	Vaas []*vaa.VaaDoc `json:"vaas"`
}

type GetAddressOverviewParams

type GetAddressOverviewParams struct {
	Address string
	Skip    int64
	Limit   int64
}

type Repository

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

func NewRepository

func NewRepository(db *mongo.Database, logger *zap.Logger) *Repository

func (*Repository) GetAddressOverview

func (r *Repository) GetAddressOverview(ctx context.Context, params *GetAddressOverviewParams) (*AddressOverview, error)

type Service

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

func NewService

func NewService(r *Repository, logger *zap.Logger) *Service

func (*Service) GetAddressOverview

func (s *Service) GetAddressOverview(
	ctx context.Context,
	address string,
	pagination *pagination.Pagination,
) (*response.Response[*AddressOverview], error)

Jump to

Keyboard shortcuts

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