mock

package
v0.0.0-...-0000b31 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAttrBag

func GetAttrBag(attrs map[string]interface{}, identityAttr, identityAttrDomain string) mixerpb.CompressedAttributes

GetAttrBag creates Attributes proto.

Types

type Args

type Args struct {
	MixerServerAddr               string
	ConfigStoreURL                string
	ConfigStore2URL               string
	ConfigDefaultNamespace        string
	ConfigIdentityAttribute       string
	ConfigIdentityAttributeDomain string
}

Args includes the required args to initialize Mixer server.

type Server

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

Server is an in-memory Mixer service.

func NewServer

func NewServer(args *Args, info map[string]template.Info, adapters []adapter.InfoFn) (*Server, error)

NewServer creates a Server instance.

func (*Server) Close

func (s *Server) Close() error

Close cleans up Server.

func (*Server) CreateClient

func (s *Server) CreateClient() (mixerpb.MixerClient, *grpc.ClientConn, error)

CreateClient returns a Mixer Grpc client.

Jump to

Keyboard shortcuts

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