adminf

package
v0.0.0-...-bc1b0c2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

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

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

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

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

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

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

type AdminFServant 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