marvel

package
v0.0.0-...-143be53 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

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

func New

func New() *Channel

func (*Channel) AppendGETAuthentication

func (c *Channel) AppendGETAuthentication(targetURL *url.URL)

Authentication for get method will append auth to ANY given URL

func (*Channel) AppendOffsetLimit

func (c *Channel) AppendOffsetLimit(targetURL *url.URL, offset int, limit int)

func (Channel) GetCharacterById

func (c Channel) GetCharacterById(id string) (resp *http.Response, err error)

func (Channel) GetCharacters

func (c Channel) GetCharacters(offset int, limit int) (resp *http.Response, err error)

type Interface

type Interface interface {
	GetCharacters(offset int, limit int) (resp *http.Response, err error)
	GetCharacterById(id string) (resp *http.Response, err error)
}

type MockInterface

type MockInterface struct {
	mock.Mock
}

MockInterface is an autogenerated mock type for the Interface type

func (*MockInterface) GetCharacterById

func (_m *MockInterface) GetCharacterById(id string) (*http.Response, error)

GetCharacterById provides a mock function with given fields: id

func (*MockInterface) GetCharacters

func (_m *MockInterface) GetCharacters(offset int, limit int) (*http.Response, error)

GetCharacters provides a mock function with given fields: offset, limit

Jump to

Keyboard shortcuts

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