frameworks

package
v1.1.1-0...-ba773be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGRPCAllowedMethods

func AddGRPCAllowedMethods(grpcResourceData *GrpcResourceData, grpcAllowedMethods []*string)

func AddRESTAllowedMethods

func AddRESTAllowedMethods(restResourceData *RestResourceData, restAllowedMethods []*string)

Types

type GrpcResourceData

type GrpcResourceData struct {
	SmallKebabCaseResourceNameSingular string
	SmallSnakeCaseResourceNameSingular string
	SmallResourceNameSingular          string
	SmallResourceNamePlural            string
	CapsResourceNameSingular           string
	CapsResourceNamePlural             string
	IsGRPCCreateAllowed                bool
	IsGRPCListAllowed                  bool
	IsGRPCGetAllowed                   bool
	IsGRPCPutAllowed                   bool
	IsGRPCDeleteAllowed                bool
	IsGRPCPatchAllowed                 bool
	IsGRPCHeadAllowed                  bool
	IsGRPCOptionsAllowed               bool
}

type RestResourceData

type RestResourceData struct {
	SmallKebabCaseResourceNameSingular string
	SmallSnakeCaseResourceNameSingular string
	SmallResourceNameSingular          string
	SmallResourceNamePlural            string
	CapsResourceNameSingular           string
	CapsResourceNamePlural             string
	ResourcePostBody                   string
	ResourcePutBody                    string
	IsRESTCreateAllowed                bool
	IsRESTListAllowed                  bool
	IsRESTGetAllowed                   bool
	IsRESTPutAllowed                   bool
	IsRESTDeleteAllowed                bool
	IsRESTPatchAllowed                 bool
	IsRESTHeadAllowed                  bool
	IsRESTOptionsAllowed               bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL