Documentation ¶
Index ¶
- func DialOptionsFromConfig(cfg *atlas.Config) ([]grpc.DialOption, error)
- type Client
- func (c *Client) Close() error
- func (c *Client) Conn() *grpc.ClientConn
- func (c *Client) Create(name string, records []*api.Record) error
- func (c *Client) Delete(name string) error
- func (c *Client) Export() ([]byte, error)
- func (c *Client) List() ([]*api.Record, error)
- func (c *Client) Lookup(query string) ([]*api.Record, error)
- func (c *Client) RecordType(rtype string) (api.RecordType, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialOptionsFromConfig ¶
func DialOptionsFromConfig(cfg *atlas.Config) ([]grpc.DialOption, error)
DialOptionsFromConfig returns dial options configured from a Stellar config
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the Atlas client
func NewClient ¶
func NewClient(addr string, opts ...grpc.DialOption) (*Client, error)
NewClient returns a new Atlas client configured with the specified address and options
func (*Client) Conn ¶
func (c *Client) Conn() *grpc.ClientConn
Conn returns the current configured client connection
func (*Client) RecordType ¶
func (c *Client) RecordType(rtype string) (api.RecordType, error)
RecordType is a helper function to resolve the record type from a human friendly string
Click to show internal directories.
Click to hide internal directories.