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 ¶
- func GetTime(ctx context.Context, _val interface{}, _os *codec.Buffer, _is *codec.Reader, ...) (err error)
- type DateTime
- func (_obj *DateTime) AddServant(imp _impDateTime, obj string)
- func (_obj *DateTime) AddServantWithContext(imp _impDateTimeWithContext, obj string)
- func (_obj *DateTime) Dispatch(ctx context.Context, _val interface{}, req *requestf.RequestPacket, ...) (err error)
- func (_obj *DateTime) GetTime(Req *GetTimeReq, Rsp *GetTimeRsp, _opt ...map[string]string) (ret int32, err error)
- func (_obj *DateTime) GetTimeWithContext(ctx context.Context, Req *GetTimeReq, Rsp *GetTimeRsp, ...) (ret int32, err error)
- func (_obj *DateTime) SetServant(s m.Servant)
- func (_obj *DateTime) TarsSetTimeout(t int)
- type GetTimeReq
- type GetTimeRsp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DateTime ¶
type DateTime struct {
// contains filtered or unexported fields
}
DateTime struct
func (*DateTime) AddServant ¶
AddServant adds servant for the service.
func (*DateTime) AddServantWithContext ¶
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 ¶
SetServant sets servant for the service.
func (*DateTime) TarsSetTimeout ¶
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) 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
type GetTimeRsp ¶
type GetTimeRsp struct { UtcTimestamp int64 `json:"utcTimestamp"` LocalTimestamp int64 `json:"localTimestamp"` LocalTimeStr string `json:"localTimeStr"` }
GetTimeRsp strcut implement
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