Documentation
¶
Index ¶
- type Config
- type KeyStore
- func (ks *KeyStore) CreateTablesIfNotExist() error
- func (ks *KeyStore) GetReview(protocolID string, reviewID uint64) (*protocol.Review, error)
- func (ks *KeyStore) PutReview(ctx context.Context, protocolID string, reviewInput *protocol.ReviewInput) (*protocol.Review, error)
- func (ks *KeyStore) RegisterDefaultProtocols() error
- func (ks *KeyStore) RegisterProtocol(protocolID string, protocol protocol.Protocol) error
- func (ks *KeyStore) Start(ctx context.Context) error
- func (ks *KeyStore) Stop(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyStore ¶
type KeyStore struct {
// contains filtered or unexported fields
}
KeyStore handles front end requests
func (*KeyStore) CreateTablesIfNotExist ¶
CreateTablesIfNotExist creates tables in local database
func (*KeyStore) PutReview ¶
func (ks *KeyStore) PutReview(ctx context.Context, protocolID string, reviewInput *protocol.ReviewInput) (*protocol.Review, error)
PutReview inserts a new review into the underlying db
func (*KeyStore) RegisterDefaultProtocols ¶
RegisterDefaultProtocols registers default protocols to the keystore
func (*KeyStore) RegisterProtocol ¶
RegisterProtocol registers a protocol to the indexer
Click to show internal directories.
Click to hide internal directories.