api

package
v0.0.0-...-f4276bb Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSyncResourceTerminal

func NewSyncResourceTerminal(conn *websocket.Conn) secret.Rpc_SyncResourceServer

Types

type Handler

type Handler struct {
	// 需要一个业务的具体实现
	// svc token.Service
	// 托管Ioc
	ioc.IocObjectImpl
	// contains filtered or unexported fields
}

func (*Handler) Init

func (h *Handler) Init() error

让他从Ioc中获取依赖的对象

func (*Handler) Name

func (h *Handler) Name() string

func (*Handler) QuerySecret

func (h *Handler) QuerySecret(r *restful.Request, w *restful.Response)

GoRestful Handler 需要符合框架签名

func (*Handler) Registry

func (h *Handler) Registry(r *restful.WebService)

func (*Handler) SyncResource

func (h *Handler) SyncResource(r *restful.Request, w *restful.Response)

GoRestful Handler 需要符合框架签名

type SyncResourceTerminal

type SyncResourceTerminal struct {
	grpc.ServerStream
	// contains filtered or unexported fields
}

只是打印下需要发送的对象

func (*SyncResourceTerminal) Send

Jump to

Keyboard shortcuts

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