lpse

package module
v0.0.0-...-5e1b394 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Procurement               = "PENGADAAN_BARANG"
	Construction              = "PEKERJAAN_KONSTRUKSI"
	BusinessEntityConsultancy = "KONSULTANSI"
	IndividualConsultancy     = "KONSULTANSI_PERORANGAN"
	Others                    = "JASA_LAINNYA"
)

Package categories

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient() *Client

func (*Client) Init

func (cl *Client) Init() error

func (*Client) Packages

func (cl *Client) Packages(pageSize int, agency, search, category string) *Packages

type Date

type Date struct {
	Year    int    `json:"year,omitempty"`
	Month   string `json:"month,omitempty"`
	MontInt int    `json:"monthInt,omitempty"`
	Day     int    `json:"day,omitempty"`
}

type Package

type Package struct {
	Code                  string   `json:"code,omitempty"`
	PackageName           string   `json:"packageName,omitempty"`
	Agency                string   `json:"agency,omitempty"`
	Stage                 string   `json:"stage,omitempty"`
	StageURl              string   `json:"stageURl,omitempty"`
	ProcurementSystem     string   `json:"procurementSystem,omitempty"`
	HPSStr                string   `json:"hpsStr,omitempty"`
	Status                string   `json:"status,omitempty"`
	SPSEVer               string   `json:"spseVer,omitempty"`
	Category              string   `json:"category,omitempty"`
	RUPCode               string   `json:"rupCode,omitempty"`
	FundSource            string   `json:"fundSource,omitempty"`
	CreatedAt             Date     `json:"createdAt,omitempty"`
	Description           string   `json:"description,omitempty"`
	WorkUnit              string   `json:"workUnit,omitempty"`
	FiscalYear            string   `json:"fiscalYear,omitempty"`
	Ceiling               float64  `json:"ceiling,omitempty"`
	HPS                   float64  `json:"hps,omitempty"`
	PaymentMethod         string   `json:"paymentMethod,omitempty"`
	WorkLocations         []string `json:"workLocations,omitempty"`
	BusinessQualification string   `json:"businessQualification,omitempty"`
	// contains filtered or unexported fields
}

func (*Package) Announcement

func (pkg *Package) Announcement() error

type Packages

type Packages struct {
	Page               int        `json:"page"`
	PageSize           int        `json:"pageSize"`
	PageCount          int        `json:"pageCount"`
	ItemsTotal         int        `json:"itemsTotal"`
	ItemsFilteredTotal int        `json:"itemsFilteredTotal"`
	Packages           []*Package `json:"packages"`
	Error              error      `json:"-"`
	// contains filtered or unexported fields
}

func (*Packages) Next

func (pkgs *Packages) Next(page int) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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