Documentation ¶
Index ¶
- Constants
- func NewServer(logger hclog.Logger) pub.PublisherServer
- type Server
- func (s *Server) Connect(ctx context.Context, req *pub.ConnectRequest) (*pub.ConnectResponse, error)
- func (s *Server) Disconnect(context.Context, *pub.DisconnectRequest) (*pub.DisconnectResponse, error)
- func (s *Server) DiscoverShapes(ctx context.Context, req *pub.DiscoverShapesRequest) (*pub.DiscoverShapesResponse, error)
- func (s *Server) PublishStream(req *pub.PublishRequest, stream pub.Publisher_PublishStreamServer) error
- type Settings
- type SettingsForm
- type SettingsStrategy
- type SettingsStringWithPassword
Constants ¶
View Source
const StrategyForm = SettingsStrategy("Form")
View Source
const StrategyStringWithPassword = SettingsStrategy("Connection String")
Variables ¶
This section is empty.
Functions ¶
func NewServer ¶
func NewServer(logger hclog.Logger) pub.PublisherServer
NewServer creates a new publisher Host.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) Connect ¶
func (s *Server) Connect(ctx context.Context, req *pub.ConnectRequest) (*pub.ConnectResponse, error)
func (*Server) Disconnect ¶
func (s *Server) Disconnect(context.Context, *pub.DisconnectRequest) (*pub.DisconnectResponse, error)
func (*Server) DiscoverShapes ¶
func (s *Server) DiscoverShapes(ctx context.Context, req *pub.DiscoverShapesRequest) (*pub.DiscoverShapesResponse, error)
func (*Server) PublishStream ¶
func (s *Server) PublishStream(req *pub.PublishRequest, stream pub.Publisher_PublishStreamServer) error
type Settings ¶
type Settings struct { Strategy SettingsStrategy `json:"strategy"` Form *SettingsForm `json:"form"` StringWithPassword *SettingsStringWithPassword `json:"stringWithPassword"` }
func (*Settings) GetConnectionString ¶
type SettingsForm ¶
type SettingsStrategy ¶
type SettingsStrategy string
Click to show internal directories.
Click to hide internal directories.