core: Index | Files

package domainsocket

import ""


Package Files

config.go config.pb.go dial.go errgen.go errors.generated.go listener.go

func Dial Uses

func Dial(ctx context.Context, dest net.Destination, streamSettings *internet.MemoryStreamConfig) (internet.Connection, error)

func Listen Uses

func Listen(ctx context.Context, address net.Address, port net.Port, streamSettings *internet.MemoryStreamConfig, handler internet.ConnHandler) (internet.Listener, error)

type Config Uses

type Config struct {
    // Path of the domain socket. This overrides the IP/Port parameter from upstream caller.
    Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
    // Abstract speicifies whether to use abstract namespace or not.
    // Traditionally Unix domain socket is file system based. Abstract domain socket can be used without acquiring file lock.
    Abstract             bool     `protobuf:"varint,2,opt,name=abstract,proto3" json:"abstract,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`

func (*Config) Descriptor Uses

func (*Config) Descriptor() ([]byte, []int)

func (*Config) GetAbstract Uses

func (m *Config) GetAbstract() bool

func (*Config) GetPath Uses

func (m *Config) GetPath() string

func (*Config) GetUnixAddr Uses

func (c *Config) GetUnixAddr() (*net.UnixAddr, error)

func (*Config) ProtoMessage Uses

func (*Config) ProtoMessage()

func (*Config) Reset Uses

func (m *Config) Reset()

func (*Config) String Uses

func (m *Config) String() string

func (*Config) XXX_DiscardUnknown Uses

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal Uses

func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Config) XXX_Merge Uses

func (m *Config) XXX_Merge(src proto.Message)

func (*Config) XXX_Size Uses

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal Uses

func (m *Config) XXX_Unmarshal(b []byte) error

type Listener Uses

type Listener struct {
    // contains filtered or unexported fields

func (*Listener) Addr Uses

func (ln *Listener) Addr() net.Addr

func (*Listener) Close Uses

func (ln *Listener) Close() error

Package domainsocket imports 13 packages (graph) and is imported by 6 packages. Updated 2020-04-28. Refresh now. Tools for package owners.