grpc

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Overview

Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0

Package grpc contains implementation of kit service gRPC API.

Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnexpectedMsg = errors.New("unknown message type")
)

Functions

func NewServer

func NewServer(incoming chan *manager.ClientStreamMessage, svc Service) manager.ManagerServiceServer

NewServer returns new AuthServiceServer instance.

Types

type ManagerClient added in v0.0.2

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

func NewClient

func NewClient(stream manager.ManagerService_ProcessClient, svc manager.Service, messageQueue chan *manager.ClientStreamMessage, logger *slog.Logger) ManagerClient

NewClient returns new gRPC client instance.

func (ManagerClient) Process added in v0.0.2

func (client ManagerClient) Process(ctx context.Context, cancel context.CancelFunc) error

type SendFunc added in v0.4.0

type SendFunc func(*manager.ServerStreamMessage) error

type Service added in v0.0.2

type Service interface {
	Run(ctx context.Context, ipAddress string, sendMessage SendFunc, authInfo credentials.AuthInfo)
}

Jump to

Keyboard shortcuts

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