You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Page metadata is used by many methods on SDK interface, however, this can be confusing as struct members are selectively used by different methods. Struct members passed to a method should be options that will be used in that method.
https://github.com/absmach/magistrala/blob/eb881690c74b6f2357115848f5ba152533561d30/pkg/sdk/go/sdk.go#L90-L125
Page metadata is used by many methods on SDK interface, however, this can be confusing as struct members are selectively used by different methods. Struct members passed to a method should be options that will be used in that method.
A good example of how this should be done is:
https://github.com/moby/moby/blob/b0632b23457112c87b28be1850a17bfb7f9a9eac/client/image_create.go#L17
https://github.com/moby/moby/blob/b0632b23457112c87b28be1850a17bfb7f9a9eac/client/image_list.go#L19
Different methods have different options that apply to each method.
The text was updated successfully, but these errors were encountered: