federation

package
v0.0.0-...-ba2e950 Latest Latest
Warning

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

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

Documentation

Overview

Package federation is a generated protocol buffer package.

It is generated from these files:

github.com/microhq/federation-srv/proto/federation/federation.proto

It has these top-level messages:

Config
Topic
Plugin
Broker
ConfigRequest
ConfigResponse

Package federation is a generated protocol buffer package.

It is generated from these files:

github.com/microhq/federation-srv/proto/federation/federation.proto

It has these top-level messages:

Config
Topic
Plugin
Broker
ConfigRequest
ConfigResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterFederationHandler

func RegisterFederationHandler(s server.Server, hdlr FederationHandler, opts ...server.HandlerOption) error

Types

type Broker

type Broker struct {
	Plugins map[string]*Plugin `` /* 134-byte string literal not displayed */
}

func (*Broker) Descriptor

func (*Broker) Descriptor() ([]byte, []int)

func (*Broker) GetPlugins

func (m *Broker) GetPlugins() map[string]*Plugin

func (*Broker) ProtoMessage

func (*Broker) ProtoMessage()

func (*Broker) Reset

func (m *Broker) Reset()

func (*Broker) String

func (m *Broker) String() string

type Config

type Config struct {
	Topics  map[string]*Topic  `` /* 132-byte string literal not displayed */
	Brokers map[string]*Broker `` /* 134-byte string literal not displayed */
}

func (*Config) Descriptor

func (*Config) Descriptor() ([]byte, []int)

func (*Config) GetBrokers

func (m *Config) GetBrokers() map[string]*Broker

func (*Config) GetTopics

func (m *Config) GetTopics() map[string]*Topic

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) String

func (m *Config) String() string

type ConfigRequest

type ConfigRequest struct {
}

func (*ConfigRequest) Descriptor

func (*ConfigRequest) Descriptor() ([]byte, []int)

func (*ConfigRequest) ProtoMessage

func (*ConfigRequest) ProtoMessage()

func (*ConfigRequest) Reset

func (m *ConfigRequest) Reset()

func (*ConfigRequest) String

func (m *ConfigRequest) String() string

type ConfigResponse

type ConfigResponse struct {
	Config *Config `protobuf:"bytes,1,opt,name=config" json:"config,omitempty"`
}

func (*ConfigResponse) Descriptor

func (*ConfigResponse) Descriptor() ([]byte, []int)

func (*ConfigResponse) GetConfig

func (m *ConfigResponse) GetConfig() *Config

func (*ConfigResponse) ProtoMessage

func (*ConfigResponse) ProtoMessage()

func (*ConfigResponse) Reset

func (m *ConfigResponse) Reset()

func (*ConfigResponse) String

func (m *ConfigResponse) String() string

type FederationHandler

type FederationHandler interface {
	Config(context.Context, *ConfigRequest, *ConfigResponse) error
}

type FederationService

type FederationService interface {
	Config(ctx context.Context, in *ConfigRequest, opts ...client.CallOption) (*ConfigResponse, error)
}

func NewFederationService

func NewFederationService(name string, c client.Client) FederationService

type Plugin

type Plugin struct {
	Hosts []string `protobuf:"bytes,2,rep,name=hosts" json:"hosts,omitempty"`
}

func (*Plugin) Descriptor

func (*Plugin) Descriptor() ([]byte, []int)

func (*Plugin) GetHosts

func (m *Plugin) GetHosts() []string

func (*Plugin) ProtoMessage

func (*Plugin) ProtoMessage()

func (*Plugin) Reset

func (m *Plugin) Reset()

func (*Plugin) String

func (m *Plugin) String() string

type Topic

type Topic struct {
	Rate      float64  `protobuf:"fixed64,1,opt,name=rate" json:"rate,omitempty"`
	Publish   []string `protobuf:"bytes,2,rep,name=publish" json:"publish,omitempty"`
	Subscribe []string `protobuf:"bytes,3,rep,name=subscribe" json:"subscribe,omitempty"`
}

func (*Topic) Descriptor

func (*Topic) Descriptor() ([]byte, []int)

func (*Topic) GetPublish

func (m *Topic) GetPublish() []string

func (*Topic) GetRate

func (m *Topic) GetRate() float64

func (*Topic) GetSubscribe

func (m *Topic) GetSubscribe() []string

func (*Topic) ProtoMessage

func (*Topic) ProtoMessage()

func (*Topic) Reset

func (m *Topic) Reset()

func (*Topic) String

func (m *Topic) String() string

Jump to

Keyboard shortcuts

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