logf

package
v0.0.0-...-10d78e3 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package logf comment This file war generated by tars2go 1.1 Generated from LogF.tars

Package logf comment This file war generated by tars2go 1.1 Generated from LogF.tars

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

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

Log struct

func (*Log) Dispatch

func (_obj *Log) 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 (*Log) Logger

func (_obj *Log) Logger(App string, Server string, File string, Format string, Buffer []string, _opt ...map[string]string) (err error)

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

func (*Log) LoggerWithContext

func (_obj *Log) LoggerWithContext(ctx context.Context, App string, Server string, File string, Format string, Buffer []string, _opt ...map[string]string) (err error)

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

func (*Log) LoggerbyInfo

func (_obj *Log) LoggerbyInfo(Info *LogInfo, Buffer []string, _opt ...map[string]string) (err error)

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

func (*Log) LoggerbyInfoWithContext

func (_obj *Log) LoggerbyInfoWithContext(ctx context.Context, Info *LogInfo, Buffer []string, _opt ...map[string]string) (err error)

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

func (*Log) SetServant

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

SetServant sets servant for the service.

func (*Log) TarsSetTimeout

func (_obj *Log) TarsSetTimeout(t int)

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

type LogInfo

type LogInfo struct {
	Appname           string `json:"appname"`
	Servername        string `json:"servername"`
	SFilename         string `json:"sFilename"`
	SFormat           string `json:"sFormat"`
	Setdivision       string `json:"setdivision"`
	BHasSufix         bool   `json:"bHasSufix"`
	BHasAppNamePrefix bool   `json:"bHasAppNamePrefix"`
	BHasSquareBracket bool   `json:"bHasSquareBracket"`
	SConcatStr        string `json:"sConcatStr"`
	SSepar            string `json:"sSepar"`
	SLogType          string `json:"sLogType"`
}

LogInfo strcut implement

func (*LogInfo) ReadBlock

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

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

func (*LogInfo) ReadFrom

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

ReadFrom reads from _is and put into struct.

func (*LogInfo) WriteBlock

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

WriteBlock encode struct

func (*LogInfo) WriteTo

func (st *LogInfo) 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