eidola

package module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 11 Imported by: 0

README

eidola

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts ...ClientOption) (*Client, error)

func (*Client) Dial

func (c *Client) Dial(ctx context.Context, target string, dialOptions ...grpc.DialOption) (*grpc.ClientConn, error)

type ClientOption

type ClientOption func(c *Client)

func ClientInsecure

func ClientInsecure() ClientOption

func ClientWithPickerBuilder

func ClientWithPickerBuilder(name string, b base.PickerBuilder) ClientOption

func ClientWithResolver

func ClientWithResolver(registry registry.Registry, timeout time.Duration) ClientOption

type GrpcResolverBuilder

type GrpcResolverBuilder struct {
	// contains filtered or unexported fields
}

func NewRegistryBuilder

func NewRegistryBuilder(registry registry.Registry, opts ...GrpcResolverOptions) (*GrpcResolverBuilder, error)

func (*GrpcResolverBuilder) Build

func (*GrpcResolverBuilder) Scheme

func (b *GrpcResolverBuilder) Scheme() string

type GrpcResolverOptions

type GrpcResolverOptions func(r *GrpcResolverBuilder)

func RegistryWithTimeout

func RegistryWithTimeout(timeout time.Duration) GrpcResolverOptions

type Server

type Server struct {
	*grpc.Server
	// contains filtered or unexported fields
}

func NewServer

func NewServer(name string, opts ...ServerOption) (*Server, error)

func (*Server) Close

func (s *Server) Close() error

func (*Server) Start

func (s *Server) Start(addr string) error

type ServerOption

type ServerOption func(s *Server)

func ServerWithGroup

func ServerWithGroup(group string) ServerOption

func ServerWithRegisterTimeout

func ServerWithRegisterTimeout(d time.Duration) ServerOption

func ServerWithRegistry

func ServerWithRegistry(reg registry.Registry) ServerOption

func ServerWithWeight

func ServerWithWeight(weight uint32) ServerOption

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL