Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthProvider ¶
type AuthProvider struct { Creds credentials.TransportCredentials // contains filtered or unexported fields }
func NewAuthProvider ¶
func NewAuthProvider(creds credentials.TransportCredentials, logger *zap.Logger) *AuthProvider
func (*AuthProvider) UnaryInterceptor ¶
func (a *AuthProvider) UnaryInterceptor(ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (any, error)
type GrpcApi ¶
type GrpcApi interface {
Register(server grpc.ServiceRegistrar)
}
func Collection ¶
Collection combines multiple GrpcApi instances into a single GrpcApi that all get registered at the same time.
type InfoServer ¶
type InfoServer struct { info.UnimplementedInfoServer // contains filtered or unexported fields }
func NewInfoServer ¶
func NewInfoServer(logger *zap.Logger) *InfoServer
func (*InfoServer) ListDevices ¶
func (i *InfoServer) ListDevices(ctx context.Context, request *info.ListDevicesRequest) (*info.ListDevicesResponse, error)
func (*InfoServer) RemoveDevice ¶
func (i *InfoServer) RemoveDevice(device *info.Device) bool
func (*InfoServer) Shutdown ¶
func (i *InfoServer) Shutdown()
Click to show internal directories.
Click to hide internal directories.