Versions in this module Expand all Collapse all v0 v0.3.1 Aug 25, 2023 Changes in this version + type Agent struct + func New(cfg Config) (*Agent, error) + func (a Agent) Call(canisterID principal.Principal, methodName string, args []byte, values []any) error + func (a Agent) CallCandid(canisterID principal.Principal, methodName string, args []byte) ([]idl.Type, []interface{}, error) + func (a Agent) CallRaw(canisterID principal.Principal, methodName string, args []byte) ([]byte, error) + func (a Agent) CallString(canisterID principal.Principal, methodName string, args []byte) (string, error) + func (a Agent) GetCanisterControllers(canisterID principal.Principal) ([]principal.Principal, error) + func (a Agent) GetCanisterInfo(canisterID principal.Principal, subPath string) ([]byte, error) + func (a Agent) GetCanisterModuleHash(canisterID principal.Principal) ([]byte, error) + func (a Agent) Query(canisterID principal.Principal, methodName string, args []byte, values []any) error + func (a Agent) QueryCandid(canisterID principal.Principal, methodName string, args []byte) ([]idl.Type, []interface{}, error) + func (a Agent) QueryRaw(canisterID principal.Principal, methodName string, args []byte) ([]byte, error) + func (a Agent) QueryString(canisterID principal.Principal, methodName string, args []byte) (string, error) + func (a Agent) RequestStatus(canisterID principal.Principal, requestID RequestID) ([]byte, certificate.Node, error) + func (a Agent) Sender() principal.Principal + type Client struct + func NewClient(cfg ClientConfig) Client + func (c Client) Status() (*Status, error) + type ClientConfig struct + Host *url.URL + type Config struct + ClientConfig *ClientConfig + FetchRootKey bool + Identity identity.Identity + IngressExpiry time.Duration + type Envelope struct + Content Request + SenderPubKey []byte + SenderSig []byte + type Implementation struct + Revision string + Source string + Version string + type Request struct + Arguments []byte + CanisterID principal.Principal + IngressExpiry uint64 + MethodName string + Nonce []byte + Paths [][][]byte + Sender principal.Principal + Type RequestType + func (r *Request) MarshalCBOR() ([]byte, error) + func (r *Request) UnmarshalCBOR(data []byte) error + type RequestID [32]byte + func NewRequestID(req Request) RequestID + func (r RequestID) Sign(id identity.Identity) []byte + type RequestType = string + const RequestTypeCall + const RequestTypeQuery + const RequestTypeReadState + type Response struct + RejectCode uint64 + RejectMsg string + Reply map[string][]byte + Status string + type Status struct + Impl *Implementation + RootKey []byte + Version string + func (s *Status) MarshalCBOR() ([]byte, error) + func (s *Status) UnmarshalCBOR(data []byte) error