proxy

package module
v0.0.0-...-548a764 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient() *redis.Client

func NewRedisMock

func NewRedisMock(t *testing.T) (*redis.Client, *miniredis.Miniredis)

Types

type ClientHandler

type ClientHandler interface {
	GetServiceClients(w http.ResponseWriter, r *http.Request)
}

func NewClientHandler

func NewClientHandler(cs ClientService) ClientHandler

type ClientRepository

type ClientRepository interface {
	XRoadMemberRepository
}

func NewClientRepository

func NewClientRepository(c *redis.Client) ClientRepository

type ClientService

type ClientService interface {
	XRoadMemberService
}

func NewClientService

func NewClientService(cr ClientRepository) ClientService

type ProviderHandler

type ProviderHandler interface {
	GetServiceProviders(w http.ResponseWriter, r *http.Request)
}

func NewProviderHandler

func NewProviderHandler(ps ProviderService) ProviderHandler

type ProviderRepository

type ProviderRepository interface {
	XRoadMemberRepository
}

func NewProviderRepository

func NewProviderRepository(c *redis.Client) ProviderRepository

type ProviderService

type ProviderService interface {
	XRoadMemberService
}

func NewProviderService

func NewProviderService(pr ProviderRepository) ProviderService

type XRoadMember

type XRoadMember struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

func HMSetAll

func HMSetAll(t *testing.T, mapXRoadMembers []map[string]interface{}, client *redis.Client, key string) []*XRoadMember

type XRoadMemberRepository

type XRoadMemberRepository interface {
	GetAll() ([]*XRoadMember, error)
}

type XRoadMemberService

type XRoadMemberService interface {
	GetAll() ([]*XRoadMember, error)
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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