core

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

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
}

Client gRPC客户端封装

func (*Client) Connection

func (c *Client) Connection(name string) *grpc.ClientConn

type Gateway

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

func (*Gateway) Status

func (g *Gateway) Status(ctx context.Context, code int)

type Server

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

Server gRPC服务器封装

func (*Server) Serve

func (s *Server) Serve(ctx context.Context, register kernel.Register) (err error)

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) (err error)

Jump to

Keyboard shortcuts

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