aws_client

package
v0.1.57 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsClient added in v0.1.36

type AwsClient interface {
	SaveFile(userId string, fileName string, content string) error
	ReadFile(userId string, fileName string) (string, error)
	UpdateQPSMetric(userId string, service string, method string) error
	UpdateErrorMetric(service string, method string, errorCode string) error
}

func NewClient added in v0.1.36

func NewClient() (AwsClient, error)

type Client

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

func (Client) ReadFile

func (c Client) ReadFile(userId string, fileName string) (string, error)

func (Client) SaveFile

func (c Client) SaveFile(userId string, fileName string, content string) error

func (Client) UpdateErrorMetric added in v0.1.25

func (c Client) UpdateErrorMetric(service string, method string, errorCode string) error

func (Client) UpdateQPSMetric added in v0.1.25

func (c Client) UpdateQPSMetric(userId string, service string, method string) error

type LocalClient added in v0.1.36

type LocalClient struct {
}

func (LocalClient) ReadFile added in v0.1.36

func (c LocalClient) ReadFile(configPrefix string, fileName string) (string, error)

func (LocalClient) SaveFile added in v0.1.36

func (c LocalClient) SaveFile(configPrefix string, fileName string, content string) error

func (LocalClient) UpdateErrorMetric added in v0.1.36

func (c LocalClient) UpdateErrorMetric(_ string, _ string, _ string) error

func (LocalClient) UpdateQPSMetric added in v0.1.36

func (c LocalClient) UpdateQPSMetric(_ string, service string, method string) error

Jump to

Keyboard shortcuts

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