Versions in this module Expand all Collapse all v0 v0.0.4 Dec 26, 2025 v0.0.3 Sep 12, 2025 Changes in this version + func ResetFactory() + func SetFactory(f ClientFactory) + type Agent interface + Service func(string, *api.QueryOptions) (*api.AgentService, *api.QueryMeta, error) + ServiceRegister func(*api.AgentServiceRegistration) error + type ApiWrapper struct + func NewConsulAPIWrapper(client *api.Client) *ApiWrapper + func (w *ApiWrapper) Agent() Agent + type Client interface + Agent func() Agent + func CreateClient(address, token string) (Client, error) + type ClientFactory interface + NewClient func(address, token string) (Client, error) + var Factory ClientFactory = &DefaultFactory{} + type DefaultFactory struct + func (f *DefaultFactory) NewClient(address, token string) (Client, error) + type MockFactory struct + MockClient Client + MockError error + func (f *MockFactory) NewClient(address, token string) (Client, error)