package
1.0.0
Repository: https://github.com/cloudwan/gohan.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

DefaultDbOptions returns default database options: no retries at all.
GetContext returns golang context from the goext requestContext.
IsDeadlock checks if error is deadlock.
MakeBool allocates a new MaybeBool and sets its value.
MakeContext creates an empty context.
MakeFloat allocates a new MaybeFloat and sets its value.
MakeInt allocates a new MaybeInt and sets its value.
MakeNullBool allocates a new null bool.
MakeNullFloat allocates a new null float.
MakeNullInt allocates a new null integer.
MakeNullString allocates a new null string.
MakeString allocates a new MaybeString and sets its value.
MakeUndefinedBool allocates a new MaybeBool with undefined value.
MakeUndefinedFloat allocates a new MaybeFloat with undefined value.
MakeUndefinedInt allocates a new MaybeInt with undefined value.
MakeUndefinedString allocates a new MaybeString with undefined value.
NewError returns a new error.
No description provided by the author
No description provided by the author
No description provided by the author
4xx.
No description provided by the author
1xx.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
5xx.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
3xx.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
2xx.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewMockIAuth creates a new mock instance.
NewMockIConfig creates a new mock instance.
NewMockICore creates a new mock instance.
NewMockIDatabase creates a new mock instance.
NewMockIHTTP creates a new mock instance.
NewMockILogger creates a new mock instance.
NewMockISchemas creates a new mock instance.
NewMockISync creates a new mock instance.
NewMockITransaction creates a new mock instance.
NewMockIUtil creates a new mock instance.
NewPaginator create Paginator.
NewResourceBase allocates a new ResourceBase with the given environment, schema and logger.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
LevelCritical indicates critical level logger message.
LevelDebug indicates debug level logger message.
LevelError indicates error level logger message.
LevelInfo indicates info level logger message.
LevelNotice indicates notice level logger message.
LevelWarning indicates warning level logger message.
LockRelatedResources indicates that related resources are also locked.
No description provided by the author
No description provided by the author
No description provided by the author
NoLock indicates that no lock is acquired at all.
Built-in handler types.
Built-in handler types.
Built-in handler types.
Built-in handler types.
Built-in handler types.
Built-in handler types.
Built-in handler types.
Built-in handler types.
Built-in handler types.
Built-in handler types.
Built-in handler types.
Built-in handler types.
Built-in handler types.
Built-in handler types.
Built-in handler types.
Built-in handler types.
Built-in handler types.
Built-in handler types.
Built-in handler types.
Built-in handler types.
PriorityDefault is a default handler priority.
ReadCommited is transaction type for READ COMMITTEDYou don't need to use this for most case.
ReadUncommitted is transaction type for READ UNCOMMITTEDYou don't need to use this for most case.
RepeatableRead is transaction type for REPEATABLE READThis is default value for read request.
Serializable is transaction type for Serializable.
SkipRelatedResources indicates that related resources are not locked.

# Variables

ErrResourceNotFound represents 'resource not found' error.

# Structs

DbOptions represent database options.
Error represents an error code with related HTTP status.
Event is an event from Sync.
ListOptions specifies additional list related options.
No description provided by the author
MaybeBool represents 3-valued bool.
MaybeFloat represents 3-valued float.
MaybeInt represents 3-valued int.
MaybeString represents 3-valued string.
MockIAuth is a mock of IAuth interface.
MockIAuthMockRecorder is the mock recorder for MockIAuth.
MockIConfig is a mock of IConfig interface.
MockIConfigMockRecorder is the mock recorder for MockIConfig.
MockICore is a mock of ICore interface.
MockICoreMockRecorder is the mock recorder for MockICore.
MockIDatabase is a mock of IDatabase interface.
MockIDatabaseMockRecorder is the mock recorder for MockIDatabase.
MockIHTTP is a mock of IHTTP interface.
MockIHTTPMockRecorder is the mock recorder for MockIHTTP.
MockILogger is a mock of ILogger interface.
MockILoggerMockRecorder is the mock recorder for MockILogger.
MockISchemas is a mock of ISchemas interface.
MockISchemasMockRecorder is the mock recorder for MockISchemas.
MockISync is a mock of ISync interface.
MockISyncMockRecorder is the mock recorder for MockISync.
MockITransaction is a mock of ITransaction interface.
MockITransactionMockRecorder is the mock recorder for MockITransaction.
MockIUtil is a mock of IUtil interface.
MockIUtilMockRecorder is the mock recorder for MockIUtil.
MockModules indicates modules which should be mocked.
Node is a node from Sync.
Paginator represents a paginator.
Property represents schema property.
ResourceBase is the implementation of base class for all resources.
ResourceState represents the state of a resource.
Response represents HTTP response.
SchemaRelationInfo describes schema relation.
TxOptions represents transaction options.

# Interfaces

IAuth is an interface to auth in Gohan.
IConfig is an interface to config in Gohan.
ICore is an interface to core parts of Gohan: event triggering and registering.
IDatabase is an interface to database in Gohan.
IEnvironment is the only scope of Gohan available for a go extensions; other packages must not be imported nor used.
IHTTP is an interface to http in Gohan.
ILogger is an interface to logger in Gohan.
IResourceBase is the base class for all resources.
ISchema is an interface representing a single schema in Gohan.
ISchemas is an interface to schemas manager in Gohan.
ISync is an interface to sync in Gohan.
ITransaction is common interface for handling transaction.
No description provided by the author
MockIEnvironment is the only scope of Gohan available for a go unit tests extensions; it should not be used outside unit tests.
Resource represents a resource.

# Type aliases

Context represents a context of a handler.
No description provided by the author
Filter represents filtering options for fetching functions.
Handler is a generic handler.
Header represents HTTP header.
Level represent logger message level.
LockPolicy indicates lock policy.
No description provided by the author
Below code is adapted from similar code in db/pagination/pagination.go, but doesn't validate parameters.
No description provided by the author
Resources is a list of resources.
SchemaHandler is a schema handler.
SchemaID is a type for schema ID.
Type represents transaction types.