github.com/ydb-platform/ydb-go-sdk/v3@v3.89.2/trace/scheme.go (about)

     1  package trace
     2  
     3  import (
     4  	"context"
     5  )
     6  
     7  // tool gtrace used from ./internal/cmd/gtrace
     8  
     9  //go:generate gtrace
    10  
    11  type (
    12  	// Scheme specified trace of scheme client activity.
    13  	// gtrace:gen
    14  	// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
    15  	Scheme struct {
    16  		// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
    17  		OnListDirectory func(SchemeListDirectoryStartInfo) func(SchemeListDirectoryDoneInfo)
    18  		// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
    19  		OnDescribePath func(SchemeDescribePathStartInfo) func(SchemeDescribePathDoneInfo)
    20  		// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
    21  		OnMakeDirectory func(SchemeMakeDirectoryStartInfo) func(SchemeMakeDirectoryDoneInfo)
    22  		// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
    23  		OnRemoveDirectory func(SchemeRemoveDirectoryStartInfo) func(SchemeRemoveDirectoryDoneInfo)
    24  		// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
    25  		OnModifyPermissions func(SchemeModifyPermissionsStartInfo) func(SchemeModifyPermissionsDoneInfo)
    26  	}
    27  
    28  	// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
    29  	SchemeListDirectoryStartInfo struct {
    30  		// Context make available context in trace callback function.
    31  		// Pointer to context provide replacement of context in trace callback function.
    32  		// Warning: concurrent access to pointer on client side must be excluded.
    33  		// Safe replacement of context are provided only inside callback function
    34  		Context *context.Context
    35  		Call    call
    36  	}
    37  	// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
    38  	SchemeListDirectoryDoneInfo struct {
    39  		Error error
    40  	}
    41  	// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
    42  	SchemeDescribePathStartInfo struct {
    43  		// Context make available context in trace callback function.
    44  		// Pointer to context provide replacement of context in trace callback function.
    45  		// Warning: concurrent access to pointer on client side must be excluded.
    46  		// Safe replacement of context are provided only inside callback function
    47  		Context *context.Context
    48  		Call    call
    49  		Path    string
    50  	}
    51  	// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
    52  	SchemeDescribePathDoneInfo struct {
    53  		EntryType string
    54  		Error     error
    55  	}
    56  	// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
    57  	SchemeMakeDirectoryStartInfo struct {
    58  		// Context make available context in trace callback function.
    59  		// Pointer to context provide replacement of context in trace callback function.
    60  		// Warning: concurrent access to pointer on client side must be excluded.
    61  		// Safe replacement of context are provided only inside callback function
    62  		Context *context.Context
    63  		Call    call
    64  		Path    string
    65  	}
    66  	// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
    67  	SchemeMakeDirectoryDoneInfo struct {
    68  		Error error
    69  	}
    70  	// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
    71  	SchemeRemoveDirectoryStartInfo struct {
    72  		// Context make available context in trace callback function.
    73  		// Pointer to context provide replacement of context in trace callback function.
    74  		// Warning: concurrent access to pointer on client side must be excluded.
    75  		// Safe replacement of context are provided only inside callback function
    76  		Context *context.Context
    77  		Call    call
    78  		Path    string
    79  	}
    80  	// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
    81  	SchemeRemoveDirectoryDoneInfo struct {
    82  		Error error
    83  	}
    84  	// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
    85  	SchemeModifyPermissionsStartInfo struct {
    86  		// Context make available context in trace callback function.
    87  		// Pointer to context provide replacement of context in trace callback function.
    88  		// Warning: concurrent access to pointer on client side must be excluded.
    89  		// Safe replacement of context are provided only inside callback function
    90  		Context *context.Context
    91  		Call    call
    92  		Path    string
    93  	}
    94  	// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
    95  	SchemeModifyPermissionsDoneInfo struct {
    96  		Error error
    97  	}
    98  )