Documentation ¶
Index ¶
- func DeferRollback(txn *sql.Tx)
- type Client
- func (c *Client) GetAuthorization(ctx context.Context, exec boil.ContextExecutor, apiKey string) (*models.Authorization, error)
- func (c *Client) UpsertIPAddresses(ctx context.Context, exec boil.ContextExecutor, ...) (models.IPAddressSlice, *string, *string, *int, error)
- func (c *Client) UpsertMultiAddress(ctx context.Context, exec boil.ContextExecutor, maddr ma.Multiaddr) (*models.MultiAddress, error)
- func (c *Client) UpsertMultiAddresses(ctx context.Context, exec boil.ContextExecutor, maddrs []ma.Multiaddr) (models.MultiAddressSlice, error)
- func (c *Client) UpsertMultiAddressesSet(ctx context.Context, exec boil.ContextExecutor, ...) (int, error)
- func (c *Client) UpsertPeer(ctx context.Context, exec boil.ContextExecutor, pid peer.ID, ...) (*models.Peer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeferRollback ¶
DeferRollback calls rollback on the given transaction and logs the potential error.
Types ¶
type Client ¶
func (*Client) GetAuthorization ¶
func (c *Client) GetAuthorization(ctx context.Context, exec boil.ContextExecutor, apiKey string) (*models.Authorization, error)
func (*Client) UpsertIPAddresses ¶
func (*Client) UpsertMultiAddress ¶ added in v0.6.0
func (c *Client) UpsertMultiAddress(ctx context.Context, exec boil.ContextExecutor, maddr ma.Multiaddr) (*models.MultiAddress, error)
func (*Client) UpsertMultiAddresses ¶
func (c *Client) UpsertMultiAddresses(ctx context.Context, exec boil.ContextExecutor, maddrs []ma.Multiaddr) (models.MultiAddressSlice, error)
func (*Client) UpsertMultiAddressesSet ¶ added in v0.3.0
func (c *Client) UpsertMultiAddressesSet(ctx context.Context, exec boil.ContextExecutor, dbMaddrs models.MultiAddressSlice) (int, error)
Click to show internal directories.
Click to hide internal directories.