Documentation
¶
Index ¶
- type Endpoint
- type Storage
- type Store
- func (s *Store) Close(ctx context.Context)
- func (s *Store) GetEndpoints(ctx context.Context, filter primitive.M) ([]*Endpoint, error)
- func (s *Store) GetLastEndpoint(ctx context.Context, filter primitive.M) (*Endpoint, error)
- func (s *Store) GetNames(ctx context.Context) ([]string, error)
- func (s *Store) SaveEndpoint(ctx context.Context, endpoint *Endpoint) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶ added in v1.0.2
type Storage interface { GetLastEndpoint(context.Context, primitive.M) (*Endpoint, error) GetEndpoints(context.Context, primitive.M) ([]*Endpoint, error) SaveEndpoint(context.Context, *Endpoint) error GetNames(context.Context) ([]string, error) Close(context.Context) }
func GetMongoClient ¶
type Store ¶
func (*Store) GetEndpoints ¶
func (*Store) GetLastEndpoint ¶
Click to show internal directories.
Click to hide internal directories.