Documentation ¶
Index ¶
- Constants
- type Morpheus
- func (m *Morpheus) Connect() error
- func (m *Morpheus) DeleteService(svc Service) error
- func (m *Morpheus) ListServices() *[]micro.Info
- func (m *Morpheus) Publish(subject string, data []byte, headers nats.Header) error
- func (m *Morpheus) RPC(name string, data []byte, headers nats.Header) (*nats.Msg, error)
- func (m *Morpheus) RegisterService(svc *Service) (*Service, error)
- type Options
- type Service
- type ServiceEndpoint
- type ServiceInfo
- type Services
Constants ¶
View Source
const DefaultHBInterval = 2 * time.Second
View Source
const DefaultTTL = 5 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Morpheus ¶
type Morpheus struct { Services Services // map[service_name]map[service_id]*Service Scheduler *tasks.Scheduler Options Options // contains filtered or unexported fields }
func (*Morpheus) DeleteService ¶
func (*Morpheus) ListServices ¶
type Options ¶
type Options struct {
Mock bool `json:"mock"` // if true, will not connect to redis
}
type Service ¶
type ServiceEndpoint ¶ added in v0.1.4
type ServiceInfo ¶ added in v0.1.4
Click to show internal directories.
Click to hide internal directories.