connect

package
v0.0.0-...-af321b4 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidToken = errors.New("invalid token")

Functions

This section is empty.

Types

type Conn

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

func (*Conn) ReadMarshal

func (c *Conn) ReadMarshal(v wire.Unmarshaller) (byte, error)

func (*Conn) ServiceId

func (c *Conn) ServiceId() *pb.ULID

func (*Conn) WireContext

func (c *Conn) WireContext(accountId *pb.Account) wire.Context

func (*Conn) WriteMarshal

func (c *Conn) WriteMarshal(tag byte, v wire.Marshaller) error

type Session

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

func Connect

func Connect(L hclog.Logger, addr, token string) (*Session, error)

func (*Session) Close

func (s *Session) Close() error

func (*Session) ConnecToAccountService

func (s *Session) ConnecToAccountService(acc *pb.Account, labels *pb.LabelSet) (*Conn, error)

func (*Session) ConnectToService

func (s *Session) ConnectToService(labels *pb.LabelSet) (*Conn, error)

Jump to

Keyboard shortcuts

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