Amc

package
v0.0.0-...-c6b2d99 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2019 License: LGPL-2.1 Imports: 8 Imported by: 0

Documentation

Overview

Package Amc comment This file war generated by tars2go 1.1 Generated from DateTime.tars

Package Amc comment This file war generated by tars2go 1.1 Generated from DateTime.tars

Package Amc comment This file war generated by tars2go 1.1 Generated from DateTime.tars

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTime

func GetTime(ctx context.Context, _val interface{}, _os *codec.Buffer, _is *codec.Reader, withContext bool) (err error)

Types

type DateTime

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

DateTime struct

func (*DateTime) AddServant

func (_obj *DateTime) AddServant(imp _impDateTime, obj string)

AddServant adds servant for the service.

func (*DateTime) AddServantWithContext

func (_obj *DateTime) AddServantWithContext(imp _impDateTimeWithContext, obj string)

AddServant adds servant for the service with context.

func (*DateTime) Dispatch

func (_obj *DateTime) Dispatch(ctx context.Context, _val interface{}, req *requestf.RequestPacket, resp *requestf.ResponsePacket, withContext bool) (err error)

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

func (*DateTime) GetTime

func (_obj *DateTime) GetTime(Req *GetTimeReq, Rsp *GetTimeRsp, _opt ...map[string]string) (ret int32, err error)

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

func (*DateTime) GetTimeWithContext

func (_obj *DateTime) GetTimeWithContext(ctx context.Context, Req *GetTimeReq, Rsp *GetTimeRsp, _opt ...map[string]string) (ret int32, err error)

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

func (*DateTime) SetServant

func (_obj *DateTime) SetServant(s m.Servant)

SetServant sets servant for the service.

func (*DateTime) TarsSetTimeout

func (_obj *DateTime) TarsSetTimeout(t int)

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

type GetTimeReq

type GetTimeReq struct {
	TimeFmt string `json:"timeFmt"`
}

GetTimeReq strcut implement

func (*GetTimeReq) ReadBlock

func (st *GetTimeReq) ReadBlock(_is *codec.Reader, tag byte, require bool) error

ReadBlock reads struct from the given tag , require or optional.

func (*GetTimeReq) ReadFrom

func (st *GetTimeReq) ReadFrom(_is *codec.Reader) error

ReadFrom reads from _is and put into struct.

func (*GetTimeReq) WriteBlock

func (st *GetTimeReq) WriteBlock(_os *codec.Buffer, tag byte) error

WriteBlock encode struct

func (*GetTimeReq) WriteTo

func (st *GetTimeReq) WriteTo(_os *codec.Buffer) error

WriteTo encode struct to buffer

type GetTimeRsp

type GetTimeRsp struct {
	UtcTimestamp   int64  `json:"utcTimestamp"`
	LocalTimestamp int64  `json:"localTimestamp"`
	LocalTimeStr   string `json:"localTimeStr"`
}

GetTimeRsp strcut implement

func (*GetTimeRsp) ReadBlock

func (st *GetTimeRsp) ReadBlock(_is *codec.Reader, tag byte, require bool) error

ReadBlock reads struct from the given tag , require or optional.

func (*GetTimeRsp) ReadFrom

func (st *GetTimeRsp) ReadFrom(_is *codec.Reader) error

ReadFrom reads from _is and put into struct.

func (*GetTimeRsp) WriteBlock

func (st *GetTimeRsp) WriteBlock(_os *codec.Buffer, tag byte) error

WriteBlock encode struct

func (*GetTimeRsp) WriteTo

func (st *GetTimeRsp) WriteTo(_os *codec.Buffer) error

WriteTo encode struct to buffer

Jump to

Keyboard shortcuts

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