resp_client

package
v0.0.0-...-08e6bf2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RespMock

type RespMock struct {
	Response string
}

func (*RespMock) GetResp

func (resp *RespMock) GetResp(r *http.Request) (string, error)

func (*RespMock) Init

func (resp *RespMock) Init(param RespParam) error

type RespParam

type RespParam struct {
	Addr     string
	Password string
	DB       int
}

type RespRedis

type RespRedis struct {
	Client *my_redis.Client

	Ref string `json:"ref"`
	// contains filtered or unexported fields
}

func (*RespRedis) GetResp

func (resp *RespRedis) GetResp(r *http.Request) (string, error)

func (*RespRedis) Init

func (resp *RespRedis) Init(param RespParam) error

Jump to

Keyboard shortcuts

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