TSAPI 型¶
概要¶
#include <ts/ts.h>
#include <ts/remap.h>
解説¶
Apache Traffic Server API は多数の型を提供します。それらの多くは特定の API 関数や関数グループに固有のものですが、それ以外はより広範囲で使用されます。それらはこのページで解説されます。
- 
type 
ink_hrtime¶ 
- 
type 
INK_MD5¶ Buffer type sufficient to contain an MD5 hash value.
- 
class 
RecRawStatBlock¶ A data block intended to contain Traffic Server statistics.
- 
type 
TSAction¶ 
- 
type 
TSCacheKey¶ 
- 
type 
TSConfig¶ 
- 
type 
TSEventFunc¶ 
- 
type 
TSFile¶ 
- 
type 
TSHostLookupResult¶ A type representing the result of a call to
TSHostLookup(). Use withTSHostLookupResultAddrGet().
- 
type 
TSHRTime¶ "高精度の時間"
ナノ秒で計られた 64 ビットの時間値。
- 
type 
TSHttpParser¶ 
- 
type 
TSHttpTxn¶ Traffic Server HTTP transaction を表現する不明瞭な型。
- 
type 
TSIOBuffer¶ 
- 
type 
TSIOBufferBlock¶ 
- 
type 
TSIOBufferReader¶ 
- 
type 
TSIOBufferSizeIndex¶ 
- 
type 
TSLifecycleHookID¶ life cycle hook を識別する列挙型。
- 
type 
TSMBuffer¶ Internally, data for a transaction is stored in one or more header heaps. These are storage local to the transaction, and generally each HTTP header is stored in a separate one. This type is a handle to a header heap, and is provided or required by functions that locate HTTP header related data.
- 
type 
TSMgmtCounter¶ 
- 
type 
TSMgmtFloat¶ 内部で浮動小数点の値として使われる型。これは
TSRecordDataTypeのTS_RECORDDATATYPE_FLOATに相当します。
- 
type 
TSMgmtInt¶ 内部で整数として使われる型。これは
TSRecordDataTypeのTS_RECORDDATATYPE_INTに相当します。
- 
type 
TSMgmtString¶ 
- 
type 
TSMimeParser¶ 
- 
type 
TSMLoc¶ This is a memory location relative to a header heap represented by a
TSMBufferand must always be used in conjunction with thatTSMBufferinstance. It identifies a specific object in theTSMBuffer. This indirection is needed so that theTSMBuffercan reallocate space as needed. Therefore a raw address obtained from aTSMLocshould be considered volatile that may become invalid across any API call.
- 
type 
TSMutex¶ 
- 
type 
TSPluginRegistrationInfo¶ The following struct is used by
TSPluginRegister().It stores registration information about the plugin.
- 
type 
TSRemapInterface¶ Data passed to a remap plugin via
TSRemapInit().- 
unsigned long 
size¶ The size of the structure in bytes, including this member.
- 
unsigned long 
tsremap_version¶ The API version of the C API. The lower 16 bits are the minor version, and the upper bits the major version.
- 
unsigned long 
 
- 
type 
TSRemapRequestInfo¶ Data passed to a remap plugin during the invocation of a remap rule.
- 
TSMBuffer 
requestBufp¶ The client request. All of the other
TSMLocvalues use this as the base buffer.
- 
TSMLoc 
requestUrl¶ The current request URL. The remap rule and plugins listed earlier in the remap rule can modify this from the client request URL. Remap plugins are expected to modify this value to perform the remapping of the request. Note this is the same
TSMLocas would be obtained by callingTSHttpTxnClientReqGet().
- 
int 
redirect¶ Flag for using the remapped URL as an explicit redirection. This can be set by the remap plugin.
- 
TSMBuffer 
 
- 
type 
TSSslX509¶ This type represents the
X509object created from an SSL certificate.
- 
type 
TSTextLogObject¶ This type represents a custom log file that you create with
TSTextLogObjectCreate().Your plugin writes entries into this log file using
TSTextLogObjectWrite().
- 
type 
TSThread¶ This represents an internal Traffic Server thread, created by the Traffic Server core. It is an opaque type which can be used only to check for equality / inequality, and passed to API functions. An instance that refers to the current thread can be obtained with
TSThreadSelf().
- 
type 
TSEventThread¶ This type represents an event thread. It is an opaque which is used to specify a particular event processing thread in Traffic Server. If plugin code is executing in an event thread (which will be true if called from a hook or a scheduled event) then the current event thread can be obtained via
TSEventThreadSelf().A
TSEventThreadis also aTSThreadand can be passed as an argument to any parameter of typeTSThread.
- 
type 
TSThreadFunc¶ 
- 
type 
TSUserArgType¶ An enum for the supported types of user arguments.
- 
type 
TSUuidVersion¶ A version value for at
TSUuid.- 
TS_UUID_V4 A version 4 UUID. Currently only this value is used.
- 
 
- 
size_t 
TS_UUID_STRING_LEN¶ Length of a UUID string.
- 
type 
TSVConn¶ A virtual connection. This is the basic mechanism for abstracting I/O operations in Traffic Server.
- 
type 
TSNetVConnection¶ A subtype of
TSVConnthat provides additional IP network information and operations.
- 
type 
TSVIO¶ 
- 
type 
ModuleVersion¶ A module version.
- 
type 
ModuleVersion¶ A module version.
- 
template<typename 
T>
classDLL¶ An anchor for a double linked intrusive list of instance of T.
- 
template<typename 
T>
classQueue¶ 
- 
type 
TSAcceptor¶ 
- 
template<typename 
T>
classLINK¶ 
- 
class 
VersionNumber¶ A two part version number, defined in include/tscore/I_Version.h.
- 
short int 
ink_major¶ Major version number.
- 
short int 
ink_minor¶ Minor version number.
- 
short int 
 
- 
type 
TSFetchUrlParams_t¶ 
- 
type 
TSFetchSM¶ 
- 
type 
TSFetchEvent¶ 
- 
type 
TSHttpPriority¶ The abstract type of the various HTTP priority implementations.
- 
uint8_t 
priority_type¶ The reference to the concrete HTTP priority implementation. This will be a value from TSHttpPriorityType
- 
uint8_t 
data[7]¶ The space allocated for the concrete priority implementation.
Note that this has to take padding into account. There is a static_assert in
InkAPI.ccto verify thatTSHttpPriorityis at least as large asTSHttp2Priority. As other structures are added that are represented byTSHttpPriorityadd more static_asserts to verify thatTSHttpPriorityis as large as it needs to be.
- 
uint8_t