Documentation ¶
Index ¶
- type Datastore
- type DirectoryService
- func (s *DirectoryService) Query(request *directorytypes.Query_Request, ...) error
- func (s *DirectoryService) Register(_ context.Context, request *directorytypes.Register_Request) (*directorytypes.Register_Reply, error)
- func (s *DirectoryService) Unregister(_ context.Context, request *directorytypes.Unregister_Request) (*directorytypes.Unregister_Reply, error)
- type SQLDatastore
- type ServiceOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datastore ¶ added in v2.452.0
type Datastore interface { Get(identifier string) (*directorytypes.Record, error) Put(record *directorytypes.Record) error Del(identifier string) error }
type DirectoryService ¶
type DirectoryService struct { directorytypes.UnimplementedDirectoryServiceServer // contains filtered or unexported fields }
func New ¶
func New(ds Datastore, opts *ServiceOpts) (*DirectoryService, error)
func (*DirectoryService) Query ¶
func (s *DirectoryService) Query(request *directorytypes.Query_Request, server directorytypes.DirectoryService_QueryServer) error
func (*DirectoryService) Register ¶
func (s *DirectoryService) Register(_ context.Context, request *directorytypes.Register_Request) (*directorytypes.Register_Reply, error)
func (*DirectoryService) Unregister ¶
func (s *DirectoryService) Unregister(_ context.Context, request *directorytypes.Unregister_Request) (*directorytypes.Unregister_Reply, error)
type SQLDatastore ¶ added in v2.452.0
type SQLDatastore struct {
// contains filtered or unexported fields
}
func NewSQLDatastore ¶ added in v2.452.0
func NewSQLDatastore(db *gorm.DB) (*SQLDatastore, error)
func (*SQLDatastore) Del ¶ added in v2.452.0
func (ds *SQLDatastore) Del(identifier string) error
func (*SQLDatastore) Get ¶ added in v2.452.0
func (ds *SQLDatastore) Get(identifier string) (*directorytypes.Record, error)
func (*SQLDatastore) Put ¶ added in v2.452.0
func (ds *SQLDatastore) Put(record *directorytypes.Record) error
Click to show internal directories.
Click to hide internal directories.