github.com/ydb-platform/ydb-go-sdk/v3@v3.57.0/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  	Scheme struct {
    15  		OnListDirectory     func(SchemeListDirectoryStartInfo) func(SchemeListDirectoryDoneInfo)
    16  		OnDescribePath      func(SchemeDescribePathStartInfo) func(SchemeDescribePathDoneInfo)
    17  		OnMakeDirectory     func(SchemeMakeDirectoryStartInfo) func(SchemeMakeDirectoryDoneInfo)
    18  		OnRemoveDirectory   func(SchemeRemoveDirectoryStartInfo) func(SchemeRemoveDirectoryDoneInfo)
    19  		OnModifyPermissions func(SchemeModifyPermissionsStartInfo) func(SchemeModifyPermissionsDoneInfo)
    20  	}
    21  
    22  	SchemeListDirectoryStartInfo struct {
    23  		// Context make available context in trace callback function.
    24  		// Pointer to context provide replacement of context in trace callback function.
    25  		// Warning: concurrent access to pointer on client side must be excluded.
    26  		// Safe replacement of context are provided only inside callback function
    27  		Context *context.Context
    28  		Call    call
    29  	}
    30  	SchemeListDirectoryDoneInfo struct {
    31  		Error error
    32  	}
    33  	SchemeDescribePathStartInfo struct {
    34  		// Context make available context in trace callback function.
    35  		// Pointer to context provide replacement of context in trace callback function.
    36  		// Warning: concurrent access to pointer on client side must be excluded.
    37  		// Safe replacement of context are provided only inside callback function
    38  		Context *context.Context
    39  		Call    call
    40  		Path    string
    41  	}
    42  	SchemeDescribePathDoneInfo struct {
    43  		EntryType string
    44  		Error     error
    45  	}
    46  	SchemeMakeDirectoryStartInfo struct {
    47  		// Context make available context in trace callback function.
    48  		// Pointer to context provide replacement of context in trace callback function.
    49  		// Warning: concurrent access to pointer on client side must be excluded.
    50  		// Safe replacement of context are provided only inside callback function
    51  		Context *context.Context
    52  		Call    call
    53  		Path    string
    54  	}
    55  	SchemeMakeDirectoryDoneInfo struct {
    56  		Error error
    57  	}
    58  	SchemeRemoveDirectoryStartInfo struct {
    59  		// Context make available context in trace callback function.
    60  		// Pointer to context provide replacement of context in trace callback function.
    61  		// Warning: concurrent access to pointer on client side must be excluded.
    62  		// Safe replacement of context are provided only inside callback function
    63  		Context *context.Context
    64  		Call    call
    65  		Path    string
    66  	}
    67  	SchemeRemoveDirectoryDoneInfo struct {
    68  		Error error
    69  	}
    70  	SchemeModifyPermissionsStartInfo struct {
    71  		// Context make available context in trace callback function.
    72  		// Pointer to context provide replacement of context in trace callback function.
    73  		// Warning: concurrent access to pointer on client side must be excluded.
    74  		// Safe replacement of context are provided only inside callback function
    75  		Context *context.Context
    76  		Call    call
    77  		Path    string
    78  	}
    79  	SchemeModifyPermissionsDoneInfo struct {
    80  		Error error
    81  	}
    82  )