grpc

package
v0.0.0-...-5ca9170 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientConn

func NewClientConn(authority string, tlsEnabled bool, tlsInsecure bool) (*grpc.ClientConn, error)

Types

type Config

type Config struct {
	Log              *slog.Logger
	TinkServerClient proto.WorkflowServiceClient
	WorkerID         string
	RetryInterval    time.Duration
	Actions          chan spec.Action
}

func (*Config) Read

func (c *Config) Read(ctx context.Context) (spec.Action, error)

func (*Config) Start

func (c *Config) Start(ctx context.Context) error

func (*Config) Write

func (c *Config) Write(ctx context.Context, event spec.Event) error

Directories

Path Synopsis
Package proto contains generated gRPC and Protobuf types for use in Tink Agent - Tink Server communication.
Package proto contains generated gRPC and Protobuf types for use in Tink Agent - Tink Server communication.

Jump to

Keyboard shortcuts

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