fscr

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const OrganizationName = "Česká republika - Generální finanční ředitelství"

OrganizationName is the legal name that the organization is registered with authority at the national level.

View Source
const PlaygroundURL = "https://pg.eet.cz/eet/services/EETServiceSOAP/v3"

PlaygroundURL is the URL of the playground EET system.

View Source
const ProductionURL = "https://prod.eet.cz/eet/services/EETServiceSOAP/v3"

ProductionURL is the URL of the production EET system.

Variables

View Source
var ErrInsecureCertificate = errors.New("certificate signed by an unknown authority")

ErrInsecureCertificate is returned if a certificate is signed by an unknown authority and can't be verified.

View Source
var ErrInvalidOrganizationName = errors.New("invalid organization name")

ErrInvalidOrganizationName is returned if the organization name is invalid.

Functions

This section is empty.

Types

type Client

type Client interface {
	Do(ctx context.Context, reqBody []byte) ([]byte, error)
	Ping() error
}

Client represents a client that can communicate with the EET server.

func NewClient

func NewClient(c *http.Client, url string) Client

NewClient returns a Client implementation.

type EETCAService

type EETCAService interface {
	Verify(crt *x509.Certificate) error
}

EETCAService verifies certificates signed off by the CA.

func NewEETCAService

func NewEETCAService(pool *x509.CertPool) EETCAService

NewEETCAService returns a EETCAService implementation with the given certification pool.

Jump to

Keyboard shortcuts

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