github.com/ydb-platform/ydb-go-sdk/v3@v3.89.2/trace/coordination.go (about) 1 package trace 2 3 import ( 4 "context" 5 "time" 6 7 "github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Coordination" 8 ) 9 10 // tool gtrace used from ./internal/cmd/gtrace 11 12 //go:generate gtrace 13 14 type ( 15 // Coordination specified trace of coordination client activity. 16 // gtrace:gen 17 Coordination struct { 18 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 19 OnNew func(CoordinationNewStartInfo) func(CoordinationNewDoneInfo) 20 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 21 OnCreateNode func(CoordinationCreateNodeStartInfo) func(CoordinationCreateNodeDoneInfo) 22 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 23 OnAlterNode func(CoordinationAlterNodeStartInfo) func(CoordinationAlterNodeDoneInfo) 24 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 25 OnDropNode func(CoordinationDropNodeStartInfo) func(CoordinationDropNodeDoneInfo) 26 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 27 OnDescribeNode func(CoordinationDescribeNodeStartInfo) func(CoordinationDescribeNodeDoneInfo) 28 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 29 OnSession func(CoordinationSessionStartInfo) func(CoordinationSessionDoneInfo) 30 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 31 OnClose func(CoordinationCloseStartInfo) func(CoordinationCloseDoneInfo) 32 33 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 34 OnStreamNew func(CoordinationStreamNewStartInfo) func(CoordinationStreamNewDoneInfo) 35 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 36 OnSessionStarted func(CoordinationSessionStartedInfo) 37 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 38 OnSessionStartTimeout func(CoordinationSessionStartTimeoutInfo) 39 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 40 OnSessionKeepAliveTimeout func(CoordinationSessionKeepAliveTimeoutInfo) 41 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 42 OnSessionStopped func(CoordinationSessionStoppedInfo) 43 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 44 OnSessionStopTimeout func(CoordinationSessionStopTimeoutInfo) 45 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 46 OnSessionClientTimeout func(CoordinationSessionClientTimeoutInfo) 47 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 48 OnSessionServerExpire func(CoordinationSessionServerExpireInfo) 49 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 50 OnSessionServerError func(CoordinationSessionServerErrorInfo) 51 52 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 53 OnSessionReceive func(CoordinationSessionReceiveStartInfo) func(CoordinationSessionReceiveDoneInfo) 54 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 55 OnSessionReceiveUnexpected func(CoordinationSessionReceiveUnexpectedInfo) 56 57 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 58 OnSessionStop func(CoordinationSessionStopInfo) 59 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 60 OnSessionStart func(CoordinationSessionStartStartInfo) func(CoordinationSessionStartDoneInfo) 61 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 62 OnSessionSend func(CoordinationSessionSendStartInfo) func(CoordinationSessionSendDoneInfo) 63 } 64 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 65 CoordinationNewStartInfo struct { 66 // Context make available context in trace callback function. 67 // Pointer to context provide replacement of context in trace callback function. 68 // Warning: concurrent access to pointer on client side must be excluded. 69 // Safe replacement of context are provided only inside callback function 70 Context *context.Context 71 Call call 72 } 73 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 74 CoordinationNewDoneInfo struct{} 75 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 76 CoordinationCloseStartInfo struct { 77 // Context make available context in trace callback function. 78 // Pointer to context provide replacement of context in trace callback function. 79 // Warning: concurrent access to pointer on client side must be excluded. 80 // Safe replacement of context are provided only inside callback function 81 Context *context.Context 82 Call call 83 } 84 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 85 CoordinationCloseDoneInfo struct { 86 Error error 87 } 88 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 89 CoordinationCreateNodeStartInfo struct { 90 // Context make available context in trace callback function. 91 // Pointer to context provide replacement of context in trace callback function. 92 // Warning: concurrent access to pointer on client side must be excluded. 93 // Safe replacement of context are provided only inside callback function 94 Context *context.Context 95 Call call 96 97 Path string 98 } 99 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 100 CoordinationCreateNodeDoneInfo struct { 101 Error error 102 } 103 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 104 CoordinationAlterNodeStartInfo struct { 105 // Context make available context in trace callback function. 106 // Pointer to context provide replacement of context in trace callback function. 107 // Warning: concurrent access to pointer on client side must be excluded. 108 // Safe replacement of context are provided only inside callback function 109 Context *context.Context 110 Call call 111 112 Path string 113 } 114 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 115 CoordinationAlterNodeDoneInfo struct { 116 Error error 117 } 118 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 119 CoordinationDropNodeStartInfo struct { 120 // Context make available context in trace callback function. 121 // Pointer to context provide replacement of context in trace callback function. 122 // Warning: concurrent access to pointer on client side must be excluded. 123 // Safe replacement of context are provided only inside callback function 124 Context *context.Context 125 Call call 126 127 Path string 128 } 129 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 130 CoordinationDropNodeDoneInfo struct { 131 Error error 132 } 133 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 134 CoordinationDescribeNodeStartInfo struct { 135 // Context make available context in trace callback function. 136 // Pointer to context provide replacement of context in trace callback function. 137 // Warning: concurrent access to pointer on client side must be excluded. 138 // Safe replacement of context are provided only inside callback function 139 Context *context.Context 140 Call call 141 142 Path string 143 } 144 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 145 CoordinationDescribeNodeDoneInfo struct { 146 Error error 147 } 148 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 149 CoordinationSessionStartInfo struct { 150 // Context make available context in trace callback function. 151 // Pointer to context provide replacement of context in trace callback function. 152 // Warning: concurrent access to pointer on client side must be excluded. 153 // Safe replacement of context are provided only inside callback function 154 Context *context.Context 155 Call call 156 157 Path string 158 } 159 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 160 CoordinationSessionDoneInfo struct { 161 Error error 162 } 163 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 164 CoordinationStreamNewStartInfo struct{} 165 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 166 CoordinationStreamNewDoneInfo struct { 167 Error error 168 } 169 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 170 CoordinationSessionStartedInfo struct { 171 SessionID uint64 172 ExpectedSessionID uint64 173 } 174 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 175 CoordinationSessionStartTimeoutInfo struct { 176 Timeout time.Duration 177 } 178 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 179 CoordinationSessionKeepAliveTimeoutInfo struct { 180 LastGoodResponseTime time.Time 181 Timeout time.Duration 182 } 183 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 184 CoordinationSessionStoppedInfo struct { 185 SessionID uint64 186 ExpectedSessionID uint64 187 } 188 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 189 CoordinationSessionStopTimeoutInfo struct { 190 Timeout time.Duration 191 } 192 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 193 CoordinationSessionClientTimeoutInfo struct { 194 LastGoodResponseTime time.Time 195 Timeout time.Duration 196 } 197 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 198 CoordinationSessionServerExpireInfo struct { 199 Failure *Ydb_Coordination.SessionResponse_Failure 200 } 201 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 202 CoordinationSessionServerErrorInfo struct { 203 Failure *Ydb_Coordination.SessionResponse_Failure 204 } 205 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 206 CoordinationSessionReceiveStartInfo struct{} 207 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 208 CoordinationSessionReceiveDoneInfo struct { 209 Response *Ydb_Coordination.SessionResponse 210 Error error 211 } 212 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 213 CoordinationSessionReceiveUnexpectedInfo struct { 214 Response *Ydb_Coordination.SessionResponse 215 } 216 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 217 CoordinationSessionStartStartInfo struct{} 218 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 219 CoordinationSessionStartDoneInfo struct { 220 Error error 221 } 222 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 223 CoordinationSessionStopInfo struct { 224 SessionID uint64 225 } 226 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 227 CoordinationSessionSendStartInfo struct { 228 Request *Ydb_Coordination.SessionRequest 229 } 230 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 231 CoordinationSessionSendDoneInfo struct { 232 Error error 233 } 234 )