Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBuilder ¶
NewBuilder returns a builder for a consul resolver.
func Register ¶
func Register(ctx context.Context, name string, host string, port int, target string, ttl int, tags ...string) error
Register is the helper function to register service with Consul server context name - service name host - service host port - service port target - consul dial address, for example: "127.0.0.1:8500" ttl - ttl of the register information
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.