Documentation
¶
Index ¶
- type Config
- type ExampleJsonLink
- type Store
- func (s *Store) Add(ctx context.Context, source *domain.Link) (*domain.Link, error)
- func (s *Store) Delete(ctx context.Context, hash string) error
- func (s *Store) Get(ctx context.Context, hash string) (*domain.Link, error)
- func (s *Store) List(ctx context.Context, params *v1.FilterLink) (*domain.Links, error)
- func (s *Store) Update(ctx context.Context, in *domain.Link) (*domain.Link, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
URI string
// contains filtered or unexported fields
}
Config - config
type ExampleJsonLink ¶
type ExampleJsonLink struct {
URI string `json:"uri,omitempty"`
Hash string `json:"hash,omitempty"`
Describe string `json:"describe,omitempty"`
}
ExampleJsonLink - example json link NOTE: we use this structure only for demonstration work with JSONb type in Postgres
func NewExampleJsonLink ¶
func NewExampleJsonLink(link domain.Link) *ExampleJsonLink
Click to show internal directories.
Click to hide internal directories.