config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2025 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Requester requester.Requester

	AccessToken   string
	CorporationID string
	IntegratorID  string
	PlatformID    string
}

Config allows you to send custom settings and API authentication

func New

func New(accessToken string, opts ...Option) (*Config, error)

New returns a new Config.

type Option

type Option func(*Config) error

func WithCorporationID

func WithCorporationID(value string) Option

WithCorporationID send corporation id to api by headers.

func WithHTTPClient

func WithHTTPClient(r requester.Requester) Option

WithHTTPClient allow to do requests using received http client.

func WithIntegratorID

func WithIntegratorID(i string) Option

WithIntegratorID send integrator id to api by headers.

func WithPlatformID

func WithPlatformID(p string) Option

WithPlatformID send platform id to api by headers.

Jump to

Keyboard shortcuts

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