Documentation ¶
Index ¶
- type AuthN
- type AuthNOption
- type AuthZ
- type Broker
- type BrokerOption
- type Cache
- type CacheOption
- type Client
- type ClientOption
- type Configuration
- type ConfigurationOption
- type Processor
- type ProcessorOption
- type Registry
- type RegistryOption
- type Service
- type Store
- type StoreOption
- type Transport
- type TransportOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthNOption ¶
type BrokerOption ¶
type CacheOption ¶
type ClientOption ¶
type Configuration ¶
type Configuration interface { // Retrieve a configuration Open(...string) error // Save configuration Save(interface{}) error // Set based on key value Set(string, interface{}) error // Get based on key Get(string) (interface{}, error) GetIntOrDefault(string, int) int GetStringOrDefault(string, string) string GetBoolOrDefault(string, bool) bool GetFloat64OrDefault(string, float64) float64 GetDurationOrDefault(string, time.Duration) time.Duration GetMapOfStringOrDefault(string, map[string]string) map[string]string GetArrayOfStringsOrDefault(string, []string) []string }
type ConfigurationOption ¶
type ConfigurationOption func(Configuration) error
type ProcessorOption ¶
type RegistryOption ¶
type Service ¶
type Service interface { ID() string Name() string //Init(...ServiceOption) Run() Stop() IsRunning() bool HookShutDown(func()) Registry() Registry Transport() Transport Broker() Broker Client() Client Store() Store Processor() Processor Configuration() Configuration AuthN() AuthN Cache() Cache //Transport Handler (rest) Helpers Handler(string, string, interface{}) error GET(string, interface{}) error POST(string, interface{}) error PUT(string, interface{}) error DELETE(string, interface{}) error //Broker Handler Helpers Subscribe(string, interface{}) error Unsubscribe(string) error Publish(string, interface{}) error //Log Info(interface{}) Warn(interface{}) Error(interface{}) Fatal(interface{}) Debug(interface{}) }
Basic Microservice interface ID() set/get unique Microservice identifier Name() set/get the Microservice name Run()
type StoreOption ¶
type TransportOption ¶
Click to show internal directories.
Click to hide internal directories.