transport

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetClient

func SetClient(factory Factory)

SetClient set the iam transport client.

Types

type Factory

type Factory interface {
	GoRequest() GoRequestTransport

	// you can add new request transport if you need
	Close() error
}

Factory defines the iam platform storage interface.

func Client

func Client() Factory

Client return the transport client instance.

type GoRequestTransport

type GoRequestTransport interface {
	// go request transport include functions
	FetchRemoteResponse(c *dudu.RequestDetail) (*http.Response, []byte, error)
}

GoRequestTransport transport interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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