Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ayiga/go-kit-middlewarer
/ functions
Functions
164 in github.com/Ayiga/go-kit-middlewarer
⨍
Functions
164
◇
Types & classes
39
↓ 39 callers
Method
String
()
type.go:39
↓ 23 callers
Method
Printf
Printf writes the given output to the internalized buffer.
generator.go:24
↓ 21 callers
Method
DecodeResponse
DecodeResponse should be able to return a DecodeResponseFunc that, when provided with an underlying type, can be used to decode a response with the en
encoding/register_encodings.go:65
↓ 20 callers
Method
Error
()
encoding/wrapper_error_test.go:154
↓ 13 callers
Method
EncodeResponse
EncodeResponse should be able to return an EncodeResponseFunc that can encode a given response with the encoding type represented by this type.
encoding/register_encodings.go:61
↓ 12 callers
Method
DecodeRequest
DecodeRequest should be able to return a DecodeRequestFunc that, when provided with an underlying type, can be used to decode a request with the encod
encoding/register_encodings.go:57
↓ 10 callers
Function
createResponseWriter
(buf *bytes.Buffer)
encoding/request_response_test.go:46
↓ 9 callers
Method
WriteHeader
(status int)
encoding/request_response_test.go:42
↓ 8 callers
Function
Get
Get will retrieve the encoding registered with the mime-type
encoding/register_encodings.go:86
↓ 8 callers
Method
ImportSpec
()
import.go:56
↓ 8 callers
Function
createType
(typ ast.Expr, pkg *Package)
type.go:17
↓ 8 callers
Function
formatBuffer
(buf bytes.Buffer, filename string)
util.go:45
↓ 8 callers
Function
openFile
(dirname, filename string)
util.go:55
↓ 7 callers
Method
SetMime
Sets the current mime type to use. If set this mime type should be retrieved by future calls to GetMime on the same variable.
encoding/default.go:25
↓ 6 callers
Method
Decode
Decode should populate the given interface with the information stored within the Decoder.
encoding/decoder.go:17
↓ 6 callers
Method
Error
Error implements the error interface
encoding/register_encodings.go:42
↓ 6 callers
Function
Register
Register will register the associated encoding with the given mime type
encoding/register_encodings.go:72
↓ 6 callers
Function
createImportWithPath
(p string)
import.go:19
↓ 6 callers
Function
parseContentType
(contentType string)
encoding/default.go:95
↓ 4 callers
Method
EncodeRequest
EncodeRequest should be able to return an EncodeRequestFunc that can encode the given requests with the encoding type represented by this type.
encoding/register_encodings.go:53
↓ 4 callers
Method
ParamSpec
()
param.go:33
↓ 4 callers
Function
parseAccept
(accept string)
encoding/default.go:46
↓ 4 callers
Function
sliceContains
(slice []string, entry string)
util.go:10
↓ 4 callers
Function
transferMimeDetails
(em EmbededMime, ct contentTypeValue, accept acceptContentHeader)
encoding/default.go:127
↓ 3 callers
Method
Encode
Encode takes an interface, and should be able to translate it within the given encoding, or it will fail with an error.
encoding/encoder.go:18
↓ 3 callers
Function
GetErrorInstance
GetErrorInstance will use reflection to attempt and instanciate a new error of the given type string. The error returned will be a pointer.
encoding/wrapper_error.go:195
↓ 3 callers
Function
MakeRequestDecoder
MakeRequestDecoder exists to help bridge the gaps for encoding. It takes a request interface type, and a GenerateDecoder, and ultimately returns a fu
encoding/decoder.go:26
↓ 3 callers
Function
MakeRequestEncoder
MakeRequestEncoder takes a GenerateEncoder and returns an httptransport.EncodeRequestFunc
encoding/encoder.go:27
↓ 3 callers
Function
MakeResponseDecoder
MakeResponseDecoder exists to help bridge the gaps for encoding. It takes a response interface type, and a GenerateDecoder, and ultimately returns a
encoding/decoder.go:38
↓ 3 callers
Function
MakeResponseEncoder
MakeResponseEncoder takes a GenerateEncoder and returns an httpstransport.EncodeResponseFunc
encoding/encoder.go:38
↓ 3 callers
Function
createTemplateBase
(basePackage, endpointPackage *Import, i Interface, oimps []*Import)
template-structures.go:166
↓ 3 callers
Function
privateVariableName
(str string)
template-structures.go:62
↓ 3 callers
Function
registerProcess
(argument string, fun func(*Generator, *File))
main.go:23
↓ 3 callers
Function
resolveFieldTypes
(t ast.Expr, pkgName string)
type.go:46
↓ 2 callers
Method
Error
()
encoding/wrapper_error.go:23
↓ 2 callers
Method
GetMime
Retrieves the currently set mime type of this structure. If nothing has been set, it would be best to specify a def one.
encoding/default.go:21
↓ 2 callers
Function
createParam
(field *ast.Field, reservedNames []string, suggestion string, file File)
param.go:14
↓ 2 callers
Function
determineLocalName
(suggestedName string, currentNames []string)
util.go:19
↓ 2 callers
Function
encodeRequest
(mime string, ctx context.Context, encoding RequestResponseEncoding, r *http.Request, request interface{})
encoding/default.go:116
↓ 2 callers
Function
encodeResponse
(mime string, ctx context.Context, encoding RequestResponseEncoding, w http.ResponseWriter, response interface
encoding/default.go:122
↓ 2 callers
Function
getFromEmbededMime
(em EmbededMime)
encoding/default.go:107
↓ 2 callers
Method
parsePackage
parsePackage analyzes the signle package constructed from the named files. If text is non-nil, it is a string to be used instead of the content of the
generator.go:62
↓ 2 callers
Function
publicVariableName
(str string)
template-structures.go:52
↓ 2 callers
Function
usage
()
examples/stringsvc/cmd/stringsvc2/main.go:27
↓ 1 callers
Method
Count
Count returns the length of the given string
examples/stringsvc/string_service.go:11
↓ 1 callers
Method
Header
()
encoding/request_response_test.go:38
↓ 1 callers
Method
InterfaceMethodSpec
()
method.go:114
↓ 1 callers
Method
Summarize
()
package.go:40
↓ 1 callers
Method
Uppercase
Uppercase returns an uppercase version of the given string, or an error.
examples/stringsvc/string_service.go:8
↓ 1 callers
Function
WrapError
(e error)
encoding/wrapper_error.go:145
↓ 1 callers
Method
check
check type-checks the package. The package must be OK to proceed.
package.go:27
↓ 1 callers
Function
copyRequestToBuf
(r *http.Request)
encoding/hint_resolver.go:16
↓ 1 callers
Function
copyResponseToBuf
(r *http.Response)
encoding/hint_resolver.go:31
↓ 1 callers
Function
createImport
(imp *ast.ImportSpec)
import.go:34
↓ 1 callers
Function
createInterface
(name string, iface *ast.InterfaceType, reservedNames []string, file File)
interface.go:19
↓ 1 callers
Function
createMethod
(field *ast.Field, reservedNames []string, file File)
method.go:27
↓ 1 callers
Function
createStruct
(name string, iface *ast.StructType, file File)
struct.go:16
↓ 1 callers
Function
createTemplateMethods
(basePackage, endpointPackage *Import, interf Interface, methods []Method, reseveredNames []string)
template-structures.go:72
↓ 1 callers
Function
createVariable
(name, value string, typ *Type)
variable.go:9
↓ 1 callers
Method
generate
generate does 'things'
generator.go:112
↓ 1 callers
Method
highest
()
encoding/default.go:77
↓ 1 callers
Function
isDirectory
(name string)
main.go:76
↓ 1 callers
Method
methodArgumentNames
()
method.go:143
↓ 1 callers
Method
methodArguments
()
method.go:134
↓ 1 callers
Method
methodResultNames
()
method.go:161
↓ 1 callers
Method
methodResults
()
method.go:152
↓ 1 callers
Method
parsePackageDir
(directory string)
generator.go:28
↓ 1 callers
Method
parsePackageFiles
(names []string)
generator.go:55
↓ 1 callers
Function
prefixDirectory
(directory string, names []string)
main.go:84
↓ 1 callers
Function
processHTTPInstanceClient
(gopath string, tb TemplateBase)
process-transport.go:95
↓ 1 callers
Function
processHTTPLoadBalancedClient
(gopath string, tb TemplateBase)
process-transport.go:116
↓ 1 callers
Function
processHTTPServer
(gopath string, tb TemplateBase)
process-transport.go:53
↓ 1 callers
Function
processMakeEndpoint
(gopath string, tb TemplateBase)
process-transport.go:33
↓ 1 callers
Function
processRequestResponse
(gopath string, tb TemplateBase)
process-transport.go:12
↓ 1 callers
Function
processTransportClient
(gopath string, tb TemplateBase)
process-transport.go:74
↓ 1 callers
Method
usedNames
()
method.go:101
Method
Count
Count implements StringService
examples/stringsvc/cmd/stringsvc2/implementation.go:18
Method
Count
Count implements StringService
examples/stringsvc/cmd/stringsvc/main.go:25
Method
DecodeRequest
DecodeRequest implements RequestResponseEncoding
encoding/gob.go:34
Method
DecodeRequest
DecodeRequest implements RequestResponseEncoding
encoding/xml.go:35
Method
DecodeRequest
DecodeRequest implements RequestResponseEncoding
encoding/default.go:161
Method
DecodeRequest
DecodeRequest implements RequestResponseEncoding
encoding/hint_resolver.go:56
Method
DecodeRequest
DecodeRequest implements RequestResponseEncoding
encoding/json.go:35
Method
DecodeResponse
DecodeResponse implements RequestResponseEncoding
encoding/gob.go:44
Method
DecodeResponse
DecodeResponse implements RequestResponseEncoding
encoding/xml.go:45
Method
DecodeResponse
DecodeResponse implements RequestResponseEncoding
encoding/default.go:205
Method
DecodeResponse
DecodeResponse implements RequestResponseEncoding
encoding/hint_resolver.go:137
Method
DecodeResponse
DecodeResponse implements RequestResponseEncoding
encoding/json.go:45
Function
Default
Default returns the default RequestResponseEncoding
encoding/default.go:29
Method
EncodeRequest
EncodeRequest implements RequestResponseEncoding
encoding/gob.go:29
Method
EncodeRequest
EncodeRequest implements RequestResponseEncoding
encoding/xml.go:30
Method
EncodeRequest
EncodeRequest implements RequestResponseEncoding
encoding/default.go:140
Method
EncodeRequest
EncodeRequest does not implement RequestResponseEncoding
encoding/hint_resolver.go:49
Method
EncodeRequest
EncodeRequest implements RequestResponseEncoding
encoding/json.go:30
Method
EncodeResponse
EncodeResponse implements RequestResponseEncoding
encoding/gob.go:39
Method
EncodeResponse
EncodeResponse implements RequestResponseEncoding
encoding/xml.go:40
Method
EncodeResponse
EncodeResponse implements RequestResponseEncoding
encoding/default.go:183
Method
EncodeResponse
EncodeResponse does not implement RequestResponseEncoding
encoding/hint_resolver.go:130
Method
EncodeResponse
EncodeResponse implements RequestResponseEncoding
encoding/json.go:40
Method
Equal
(o Type)
type.go:35
next →
1–100 of 164, ranked by callers