adminf

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: BSD-3-Clause Imports: 12 Imported by: 26

Documentation

Overview

Code generated by tars2go 1.2.3, DO NOT EDIT. This file was generated from AdminF.tars Package adminf comment

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 NewAdminF added in v1.4.5

func NewAdminF() *AdminF

NewAdminF creates a new AdminF servant.

func (*AdminF) Dispatch

func (obj *AdminF) Dispatch(tarsCtx context.Context, val interface{}, tarsReq *requestf.RequestPacket, tarsResp *requestf.ResponsePacket, withContext bool) (err error)

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

func (*AdminF) Endpoints added in v1.4.1

func (obj *AdminF) Endpoints() []*endpoint.Endpoint

Endpoints returns all active endpoint.Endpoint

func (*AdminF) Notify

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

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

func (*AdminF) NotifyOneWayWithContext added in v1.2.0

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

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

func (*AdminF) NotifyWithContext

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

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

func (*AdminF) SetServant

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

SetServant sets servant for the service.

func (*AdminF) Shutdown

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

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

func (*AdminF) ShutdownOneWayWithContext added in v1.2.0

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

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

func (*AdminF) ShutdownWithContext

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

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

func (*AdminF) TarsSetProtocol added in v1.2.0

func (obj *AdminF) TarsSetProtocol(p model.Protocol)

TarsSetProtocol sets the protocol for the servant.

func (*AdminF) TarsSetTimeout

func (obj *AdminF) TarsSetTimeout(timeout int)

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

type AdminFServant added in v1.3.0

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

type AdminFServantWithContext added in v1.3.0

type AdminFServantWithContext interface {
	Shutdown(tarsCtx context.Context) (err error)
	Notify(tarsCtx 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