rpc

package
v1.16.13 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(token, addr string) error

func StreamLogger

func StreamLogger() grpc.StreamServerInterceptor

func StreamTokenAuth

func StreamTokenAuth(key string) grpc.StreamServerInterceptor

func TransformAccountArray

func TransformAccountArray(a []dto.SshDeploy) []*proto.SshAccount

func TransformMsgArray

func TransformMsgArray(a []SshAccountMsg) []*proto.SshAccount

func UnaryLogger

func UnaryLogger() grpc.UnaryServerInterceptor

func UnaryTokenAuth

func UnaryTokenAuth(key string) grpc.UnaryServerInterceptor

Types

type SshAccountMsg

type SshAccountMsg struct {
	IsDel     bool   `json:"isDel"`  // 是否为删除用户操作
	IsKill    bool   `json:"isKill"` // 是否为结束用户进程操作
	Username  string `json:"username"`
	PublicKey string `json:"publicKey"`
}

func (SshAccountMsg) Rpc

func (a SshAccountMsg) Rpc() *proto.SshAccount

type SshAccounts

type SshAccounts struct {
	proto.UnimplementedSshAccountsServer
}

func (*SshAccounts) Watch

Jump to

Keyboard shortcuts

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