Documentation ¶
Index ¶
Constants ¶
View Source
const (
SignScheme = "sign"
)
Variables ¶
View Source
var ( ErrInvalidServiceName = errors.New("invalid service name") ErrListenAddrNotFound = errors.New("listen addr not found") )
Functions ¶
func NewClient ¶
func NewClient(service string, newClient func(cc *grpc.ClientConn))
Types ¶
type OptionFunc ¶
type OptionFunc func(opts *Options)
func WithMod ¶ added in v0.4.1
func WithMod(mod string) OptionFunc
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(service, etcdAddr string, listenPort int, optsF ...OptionFunc) (*Server, error)
func (*Server) Register ¶
func (s *Server) Register(registerServer func(grpc.ServiceRegistrar))
type SignBuilder ¶
type SignBuilder struct {
// contains filtered or unexported fields
}
func (*SignBuilder) Build ¶
func (sb *SignBuilder) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error)
func (*SignBuilder) Scheme ¶
func (sb *SignBuilder) Scheme() string
type SignResolver ¶
type SignResolver struct {
// contains filtered or unexported fields
}
func (*SignResolver) ResolveNow ¶
func (sr *SignResolver) ResolveNow(rno resolver.ResolveNowOptions)
Click to show internal directories.
Click to hide internal directories.