adminf

package
v1.3.22 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Overview

Package adminf comment This file was generated by ksf2go 1.1.7 Generated from AdminF.ksf

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminF

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

AdminF struct

func (*AdminF) Dispatch

func (obj *AdminF) Dispatch(ksfCtx context.Context, val interface{}, ksfReq *requestf.RequestPacket, ksfResp *requestf.ResponsePacket, withContext bool) (err error)

Dispatch is used to call the server side implement for the method defined in the ksf file. withContext shows using context or not.

func (*AdminF) KsfSetProtocol

func (obj *AdminF) KsfSetProtocol(p m.Protocol)

KsfSetProtocol sets the protocol for the servant.

func (*AdminF) KsfSetTimeout

func (obj *AdminF) KsfSetTimeout(timeout int)

KsfSetTimeout sets the timeout for the servant which is in ms.

func (*AdminF) Notify

func (obj *AdminF) Notify(command string, opts ...map[string]string) (ret string, err error)

Notify is the proxy function for the method defined in the ksf file, with the context

func (*AdminF) NotifyOneWayWithContext

func (obj *AdminF) NotifyOneWayWithContext(ksfCtx context.Context, command string, opts ...map[string]string) (ret string, err error)

NotifyOneWayWithContext is the proxy function for the method defined in the ksf file, with the context

func (*AdminF) NotifyWithContext

func (obj *AdminF) NotifyWithContext(ksfCtx context.Context, command string, opts ...map[string]string) (ret string, err error)

NotifyWithContext is the proxy function for the method defined in the ksf file, with the context

func (*AdminF) SetServant

func (obj *AdminF) SetServant(servant m.Servant)

SetServant sets servant for the service.

func (*AdminF) Shutdown

func (obj *AdminF) Shutdown(opts ...map[string]string) (err error)

Shutdown is the proxy function for the method defined in the ksf file, with the context

func (*AdminF) ShutdownOneWayWithContext

func (obj *AdminF) ShutdownOneWayWithContext(ksfCtx context.Context, opts ...map[string]string) (err error)

ShutdownOneWayWithContext is the proxy function for the method defined in the ksf file, with the context

func (*AdminF) ShutdownWithContext

func (obj *AdminF) ShutdownWithContext(ksfCtx context.Context, opts ...map[string]string) (err error)

ShutdownWithContext is the proxy function for the method defined in the ksf file, with the context

type AdminFServant

type AdminFServant interface {
	Shutdown() (err error)
	Notify(command string) (ret string, err error)
}

type AdminFServantWithContext

type AdminFServantWithContext interface {
	Shutdown(ksfCtx context.Context) (err error)
	Notify(ksfCtx context.Context, command string) (ret string, err error)
}

Jump to

Keyboard shortcuts

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