Documentation
¶
Index ¶
- Constants
- func Version() string
- type Consumer
- type Group
- type PubSub
- type Server
- func (s *Server) Publish(stream api.Switchback_PublishServer) (err error)
- func (s *Server) Run(sock net.Listener)
- func (s *Server) Serve() (err error)
- func (s *Server) Shutdown() (err error)
- func (s *Server) Status(ctx context.Context, in *api.HealthCheck) (out *api.ServiceState, err error)
- func (s *Server) StreamAvailable() grpc.StreamServerInterceptor
- func (s *Server) StreamInterceptors() grpc.ServerOption
- func (s *Server) Subscribe(in *api.Subscription, stream api.Switchback_SubscribeServer) (err error)
- func (s *Server) UnaryAvailable() grpc.UnaryServerInterceptor
- func (s *Server) UnaryInterceptors() grpc.ServerOption
Constants ¶
View Source
const ( VersionMajor = 0 VersionMinor = 1 VersionPatch = 0 VersionRelease = 0 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
api.UnimplementedSwitchbackServer
// contains filtered or unexported fields
}
func (*Server) Status ¶
func (s *Server) Status(ctx context.Context, in *api.HealthCheck) (out *api.ServiceState, err error)
func (*Server) StreamAvailable ¶
func (s *Server) StreamAvailable() grpc.StreamServerInterceptor
StreamAvailable returns an interceptor that should be first in the chain - returning an error if the server is in maintenance mode (unless a status request is sent).
func (*Server) StreamInterceptors ¶
func (s *Server) StreamInterceptors() grpc.ServerOption
func (*Server) Subscribe ¶
func (s *Server) Subscribe(in *api.Subscription, stream api.Switchback_SubscribeServer) (err error)
func (*Server) UnaryAvailable ¶
func (s *Server) UnaryAvailable() grpc.UnaryServerInterceptor
UnaryAvailable returns an interceptor that should be first in the chain - returning an error if the server is in maintenance mode (unless a status request is sent).
func (*Server) UnaryInterceptors ¶
func (s *Server) UnaryInterceptors() grpc.ServerOption
Click to show internal directories.
Click to hide internal directories.