gen

package
v0.0.0-...-f9697bf Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package gen is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	MetadataService_GetMetadata_FullMethodName         = "/MetadataService/GetMetadata"
	MetadataService_GetMetadataByFilter_FullMethodName = "/MetadataService/GetMetadataByFilter"
	MetadataService_CreateMetadata_FullMethodName      = "/MetadataService/CreateMetadata"
)
View Source
const (
	FranchiseService_GetFranchise_FullMethodName         = "/FranchiseService/GetFranchise"
	FranchiseService_GetFranchiseByFilter_FullMethodName = "/FranchiseService/GetFranchiseByFilter"
	FranchiseService_CreateFranchise_FullMethodName      = "/FranchiseService/CreateFranchise"
	FranchiseService_UpdateFranchise_FullMethodName      = "/FranchiseService/UpdateFranchise"
)

Variables

View Source
var File_franchise_proto protoreflect.FileDescriptor
View Source
var FranchiseService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "FranchiseService",
	HandlerType: (*FranchiseServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetFranchise",
			Handler:    _FranchiseService_GetFranchise_Handler,
		},
		{
			MethodName: "GetFranchiseByFilter",
			Handler:    _FranchiseService_GetFranchiseByFilter_Handler,
		},
		{
			MethodName: "CreateFranchise",
			Handler:    _FranchiseService_CreateFranchise_Handler,
		},
		{
			MethodName: "UpdateFranchise",
			Handler:    _FranchiseService_UpdateFranchise_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "franchise.proto",
}

FranchiseService_ServiceDesc is the grpc.ServiceDesc for FranchiseService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var MetadataService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "MetadataService",
	HandlerType: (*MetadataServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetMetadata",
			Handler:    _MetadataService_GetMetadata_Handler,
		},
		{
			MethodName: "GetMetadataByFilter",
			Handler:    _MetadataService_GetMetadataByFilter_Handler,
		},
		{
			MethodName: "CreateMetadata",
			Handler:    _MetadataService_CreateMetadata_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "franchise.proto",
}

MetadataService_ServiceDesc is the grpc.ServiceDesc for MetadataService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterFranchiseServiceHandler

func RegisterFranchiseServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterFranchiseServiceHandler registers the http handlers for service FranchiseService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterFranchiseServiceHandlerClient

func RegisterFranchiseServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FranchiseServiceClient) error

RegisterFranchiseServiceHandlerClient registers the http handlers for service FranchiseService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "FranchiseServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "FranchiseServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "FranchiseServiceClient" to call the correct interceptors.

func RegisterFranchiseServiceHandlerFromEndpoint

func RegisterFranchiseServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterFranchiseServiceHandlerFromEndpoint is same as RegisterFranchiseServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterFranchiseServiceHandlerServer

func RegisterFranchiseServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FranchiseServiceServer) error

RegisterFranchiseServiceHandlerServer registers the http handlers for service FranchiseService to "mux". UnaryRPC :call FranchiseServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterFranchiseServiceHandlerFromEndpoint instead.

func RegisterFranchiseServiceServer

func RegisterFranchiseServiceServer(s grpc.ServiceRegistrar, srv FranchiseServiceServer)

func RegisterMetadataServiceHandler

func RegisterMetadataServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterMetadataServiceHandler registers the http handlers for service MetadataService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterMetadataServiceHandlerClient

func RegisterMetadataServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MetadataServiceClient) error

RegisterMetadataServiceHandlerClient registers the http handlers for service MetadataService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MetadataServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MetadataServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MetadataServiceClient" to call the correct interceptors.

func RegisterMetadataServiceHandlerFromEndpoint

func RegisterMetadataServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterMetadataServiceHandlerFromEndpoint is same as RegisterMetadataServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterMetadataServiceHandlerServer

func RegisterMetadataServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MetadataServiceServer) error

RegisterMetadataServiceHandlerServer registers the http handlers for service MetadataService to "mux". UnaryRPC :call MetadataServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMetadataServiceHandlerFromEndpoint instead.

func RegisterMetadataServiceServer

func RegisterMetadataServiceServer(s grpc.ServiceRegistrar, srv MetadataServiceServer)

Types

type Country

type Country struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Country) Descriptor deprecated

func (*Country) Descriptor() ([]byte, []int)

Deprecated: Use Country.ProtoReflect.Descriptor instead.

func (*Country) GetName

func (x *Country) GetName() string

func (*Country) ProtoMessage

func (*Country) ProtoMessage()

func (*Country) ProtoReflect

func (x *Country) ProtoReflect() protoreflect.Message

func (*Country) Reset

func (x *Country) Reset()

func (*Country) String

func (x *Country) String() string

type CreateFranchiseRequest

type CreateFranchiseRequest struct {
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateFranchiseRequest) Descriptor deprecated

func (*CreateFranchiseRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateFranchiseRequest.ProtoReflect.Descriptor instead.

func (*CreateFranchiseRequest) GetHost

func (x *CreateFranchiseRequest) GetHost() string

func (*CreateFranchiseRequest) ProtoMessage

func (*CreateFranchiseRequest) ProtoMessage()

func (*CreateFranchiseRequest) ProtoReflect

func (x *CreateFranchiseRequest) ProtoReflect() protoreflect.Message

func (*CreateFranchiseRequest) Reset

func (x *CreateFranchiseRequest) Reset()

func (*CreateFranchiseRequest) String

func (x *CreateFranchiseRequest) String() string

type CreateFranchiseResponse

type CreateFranchiseResponse struct {
	Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateFranchiseResponse) Descriptor deprecated

func (*CreateFranchiseResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateFranchiseResponse.ProtoReflect.Descriptor instead.

func (*CreateFranchiseResponse) GetError

func (x *CreateFranchiseResponse) GetError() string

func (*CreateFranchiseResponse) ProtoMessage

func (*CreateFranchiseResponse) ProtoMessage()

func (*CreateFranchiseResponse) ProtoReflect

func (x *CreateFranchiseResponse) ProtoReflect() protoreflect.Message

func (*CreateFranchiseResponse) Reset

func (x *CreateFranchiseResponse) Reset()

func (*CreateFranchiseResponse) String

func (x *CreateFranchiseResponse) String() string

type CreateMetadataRequest

type CreateMetadataRequest struct {
	Host        string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	FranchiseId uint32 `protobuf:"varint,2,opt,name=franchise_id,json=franchiseId,proto3" json:"franchise_id,omitempty"`
	CompanyId   uint32 `protobuf:"varint,3,opt,name=company_id,json=companyId,proto3" json:"company_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateMetadataRequest) Descriptor deprecated

func (*CreateMetadataRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateMetadataRequest.ProtoReflect.Descriptor instead.

func (*CreateMetadataRequest) GetCompanyId

func (x *CreateMetadataRequest) GetCompanyId() uint32

func (*CreateMetadataRequest) GetFranchiseId

func (x *CreateMetadataRequest) GetFranchiseId() uint32

func (*CreateMetadataRequest) GetHost

func (x *CreateMetadataRequest) GetHost() string

func (*CreateMetadataRequest) ProtoMessage

func (*CreateMetadataRequest) ProtoMessage()

func (*CreateMetadataRequest) ProtoReflect

func (x *CreateMetadataRequest) ProtoReflect() protoreflect.Message

func (*CreateMetadataRequest) Reset

func (x *CreateMetadataRequest) Reset()

func (*CreateMetadataRequest) String

func (x *CreateMetadataRequest) String() string

type CreateMetadataResponse

type CreateMetadataResponse struct {
	Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateMetadataResponse) Descriptor deprecated

func (*CreateMetadataResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateMetadataResponse.ProtoReflect.Descriptor instead.

func (*CreateMetadataResponse) GetError

func (x *CreateMetadataResponse) GetError() string

func (*CreateMetadataResponse) ProtoMessage

func (*CreateMetadataResponse) ProtoMessage()

func (*CreateMetadataResponse) ProtoReflect

func (x *CreateMetadataResponse) ProtoReflect() protoreflect.Message

func (*CreateMetadataResponse) Reset

func (x *CreateMetadataResponse) Reset()

func (*CreateMetadataResponse) String

func (x *CreateMetadataResponse) String() string

type Endpoint

type Endpoint struct {
	ServerName string `protobuf:"bytes,1,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"`
	IpAddress  string `protobuf:"bytes,2,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
	// contains filtered or unexported fields
}

func (*Endpoint) Descriptor deprecated

func (*Endpoint) Descriptor() ([]byte, []int)

Deprecated: Use Endpoint.ProtoReflect.Descriptor instead.

func (*Endpoint) GetIpAddress

func (x *Endpoint) GetIpAddress() string

func (*Endpoint) GetServerName

func (x *Endpoint) GetServerName() string

func (*Endpoint) ProtoMessage

func (*Endpoint) ProtoMessage()

func (*Endpoint) ProtoReflect

func (x *Endpoint) ProtoReflect() protoreflect.Message

func (*Endpoint) Reset

func (x *Endpoint) Reset()

func (*Endpoint) String

func (x *Endpoint) String() string

type Franchise

type Franchise struct {
	Url         string               `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	CreateDate  *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_date,json=createDate,proto3" json:"create_date,omitempty"`
	ExpiresDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expires_date,json=expiresDate,proto3" json:"expires_date,omitempty"`
	Name        string               `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Email       string               `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
	Location    *Location            `protobuf:"bytes,6,opt,name=location,proto3" json:"location,omitempty"`
	CompanyId   uint32               `protobuf:"varint,7,opt,name=company_id,json=companyId,proto3" json:"company_id,omitempty"`
	Metadata    *Metadata            `protobuf:"bytes,8,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*Franchise) Descriptor deprecated

func (*Franchise) Descriptor() ([]byte, []int)

Deprecated: Use Franchise.ProtoReflect.Descriptor instead.

func (*Franchise) GetCompanyId

func (x *Franchise) GetCompanyId() uint32

func (*Franchise) GetCreateDate

func (x *Franchise) GetCreateDate() *timestamp.Timestamp

func (*Franchise) GetEmail

func (x *Franchise) GetEmail() string

func (*Franchise) GetExpiresDate

func (x *Franchise) GetExpiresDate() *timestamp.Timestamp

func (*Franchise) GetLocation

func (x *Franchise) GetLocation() *Location

func (*Franchise) GetMetadata

func (x *Franchise) GetMetadata() *Metadata

func (*Franchise) GetName

func (x *Franchise) GetName() string

func (*Franchise) GetUrl

func (x *Franchise) GetUrl() string

func (*Franchise) ProtoMessage

func (*Franchise) ProtoMessage()

func (*Franchise) ProtoReflect

func (x *Franchise) ProtoReflect() protoreflect.Message

func (*Franchise) Reset

func (x *Franchise) Reset()

func (*Franchise) String

func (x *Franchise) String() string

type FranchiseServiceClient

type FranchiseServiceClient interface {
	GetFranchise(ctx context.Context, in *GetFranchiseRequest, opts ...grpc.CallOption) (*GetFranchiseResponse, error)
	GetFranchiseByFilter(ctx context.Context, in *GetFranchiseByFilterRequest, opts ...grpc.CallOption) (*GetFranchiseResponse, error)
	CreateFranchise(ctx context.Context, in *CreateFranchiseRequest, opts ...grpc.CallOption) (*CreateFranchiseResponse, error)
	UpdateFranchise(ctx context.Context, in *UpdateFranchiseRequest, opts ...grpc.CallOption) (*UpdateFranchiseResponse, error)
}

FranchiseServiceClient is the client API for FranchiseService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type FranchiseServiceServer

type FranchiseServiceServer interface {
	GetFranchise(context.Context, *GetFranchiseRequest) (*GetFranchiseResponse, error)
	GetFranchiseByFilter(context.Context, *GetFranchiseByFilterRequest) (*GetFranchiseResponse, error)
	CreateFranchise(context.Context, *CreateFranchiseRequest) (*CreateFranchiseResponse, error)
	UpdateFranchise(context.Context, *UpdateFranchiseRequest) (*UpdateFranchiseResponse, error)
	// contains filtered or unexported methods
}

FranchiseServiceServer is the server API for FranchiseService service. All implementations must embed UnimplementedFranchiseServiceServer for forward compatibility

type GetFranchiseByFilterRequest

type GetFranchiseByFilterRequest struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFranchiseByFilterRequest) Descriptor deprecated

func (*GetFranchiseByFilterRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetFranchiseByFilterRequest.ProtoReflect.Descriptor instead.

func (*GetFranchiseByFilterRequest) GetKey

func (x *GetFranchiseByFilterRequest) GetKey() string

func (*GetFranchiseByFilterRequest) GetValue

func (x *GetFranchiseByFilterRequest) GetValue() string

func (*GetFranchiseByFilterRequest) ProtoMessage

func (*GetFranchiseByFilterRequest) ProtoMessage()

func (*GetFranchiseByFilterRequest) ProtoReflect

func (*GetFranchiseByFilterRequest) Reset

func (x *GetFranchiseByFilterRequest) Reset()

func (*GetFranchiseByFilterRequest) String

func (x *GetFranchiseByFilterRequest) String() string

type GetFranchiseRequest

type GetFranchiseRequest struct {
	CompanyId uint32 `protobuf:"varint,1,opt,name=company_id,json=companyId,proto3" json:"company_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFranchiseRequest) Descriptor deprecated

func (*GetFranchiseRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetFranchiseRequest.ProtoReflect.Descriptor instead.

func (*GetFranchiseRequest) GetCompanyId

func (x *GetFranchiseRequest) GetCompanyId() uint32

func (*GetFranchiseRequest) ProtoMessage

func (*GetFranchiseRequest) ProtoMessage()

func (*GetFranchiseRequest) ProtoReflect

func (x *GetFranchiseRequest) ProtoReflect() protoreflect.Message

func (*GetFranchiseRequest) Reset

func (x *GetFranchiseRequest) Reset()

func (*GetFranchiseRequest) String

func (x *GetFranchiseRequest) String() string

type GetFranchiseResponse

type GetFranchiseResponse struct {
	Franchise []*Franchise `protobuf:"bytes,1,rep,name=franchise,proto3" json:"franchise,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFranchiseResponse) Descriptor deprecated

func (*GetFranchiseResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetFranchiseResponse.ProtoReflect.Descriptor instead.

func (*GetFranchiseResponse) GetFranchise

func (x *GetFranchiseResponse) GetFranchise() []*Franchise

func (*GetFranchiseResponse) ProtoMessage

func (*GetFranchiseResponse) ProtoMessage()

func (*GetFranchiseResponse) ProtoReflect

func (x *GetFranchiseResponse) ProtoReflect() protoreflect.Message

func (*GetFranchiseResponse) Reset

func (x *GetFranchiseResponse) Reset()

func (*GetFranchiseResponse) String

func (x *GetFranchiseResponse) String() string

type GetMetadataByFilterRequest

type GetMetadataByFilterRequest struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value uint32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMetadataByFilterRequest) Descriptor deprecated

func (*GetMetadataByFilterRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetMetadataByFilterRequest.ProtoReflect.Descriptor instead.

func (*GetMetadataByFilterRequest) GetKey

func (x *GetMetadataByFilterRequest) GetKey() string

func (*GetMetadataByFilterRequest) GetValue

func (x *GetMetadataByFilterRequest) GetValue() uint32

func (*GetMetadataByFilterRequest) ProtoMessage

func (*GetMetadataByFilterRequest) ProtoMessage()

func (*GetMetadataByFilterRequest) ProtoReflect

func (*GetMetadataByFilterRequest) Reset

func (x *GetMetadataByFilterRequest) Reset()

func (*GetMetadataByFilterRequest) String

func (x *GetMetadataByFilterRequest) String() string

type GetMetadataRequest

type GetMetadataRequest struct {
	CompanyId uint32 `protobuf:"varint,1,opt,name=company_id,json=companyId,proto3" json:"company_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMetadataRequest) Descriptor deprecated

func (*GetMetadataRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetMetadataRequest.ProtoReflect.Descriptor instead.

func (*GetMetadataRequest) GetCompanyId

func (x *GetMetadataRequest) GetCompanyId() uint32

func (*GetMetadataRequest) ProtoMessage

func (*GetMetadataRequest) ProtoMessage()

func (*GetMetadataRequest) ProtoReflect

func (x *GetMetadataRequest) ProtoReflect() protoreflect.Message

func (*GetMetadataRequest) Reset

func (x *GetMetadataRequest) Reset()

func (*GetMetadataRequest) String

func (x *GetMetadataRequest) String() string

type GetMetadataResponse

type GetMetadataResponse struct {
	Metadata []*Metadata `protobuf:"bytes,1,rep,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMetadataResponse) Descriptor deprecated

func (*GetMetadataResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetMetadataResponse.ProtoReflect.Descriptor instead.

func (*GetMetadataResponse) GetMetadata

func (x *GetMetadataResponse) GetMetadata() []*Metadata

func (*GetMetadataResponse) ProtoMessage

func (*GetMetadataResponse) ProtoMessage()

func (*GetMetadataResponse) ProtoReflect

func (x *GetMetadataResponse) ProtoReflect() protoreflect.Message

func (*GetMetadataResponse) Reset

func (x *GetMetadataResponse) Reset()

func (*GetMetadataResponse) String

func (x *GetMetadataResponse) String() string

type Location

type Location struct {
	City    string   `protobuf:"bytes,1,opt,name=city,proto3" json:"city,omitempty"`
	Address string   `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Country *Country `protobuf:"bytes,3,opt,name=country,proto3" json:"country,omitempty"`
	// contains filtered or unexported fields
}

func (*Location) Descriptor deprecated

func (*Location) Descriptor() ([]byte, []int)

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetAddress

func (x *Location) GetAddress() string

func (*Location) GetCity

func (x *Location) GetCity() string

func (*Location) GetCountry

func (x *Location) GetCountry() *Country

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) ProtoReflect

func (x *Location) ProtoReflect() protoreflect.Message

func (*Location) Reset

func (x *Location) Reset()

func (*Location) String

func (x *Location) String() string

type Metadata

type Metadata struct {
	Protocol     string      `protobuf:"bytes,1,opt,name=protocol,proto3" json:"protocol,omitempty"`
	Availability string      `protobuf:"bytes,2,opt,name=availability,proto3" json:"availability,omitempty"`
	Endpoints    []*Endpoint `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	FranchiseId  uint32      `protobuf:"varint,4,opt,name=franchise_id,json=franchiseId,proto3" json:"franchise_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Metadata) Descriptor deprecated

func (*Metadata) Descriptor() ([]byte, []int)

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetAvailability

func (x *Metadata) GetAvailability() string

func (*Metadata) GetEndpoints

func (x *Metadata) GetEndpoints() []*Endpoint

func (*Metadata) GetFranchiseId

func (x *Metadata) GetFranchiseId() uint32

func (*Metadata) GetProtocol

func (x *Metadata) GetProtocol() string

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

func (x *Metadata) ProtoReflect() protoreflect.Message

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

type MetadataServiceClient

type MetadataServiceClient interface {
	// Login
	//
	// {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service.
	// It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}".
	//
	// {{import "tables.md"}}
	GetMetadata(ctx context.Context, in *GetMetadataRequest, opts ...grpc.CallOption) (*GetMetadataResponse, error)
	GetMetadataByFilter(ctx context.Context, in *GetMetadataByFilterRequest, opts ...grpc.CallOption) (*GetMetadataResponse, error)
	CreateMetadata(ctx context.Context, in *CreateMetadataRequest, opts ...grpc.CallOption) (*CreateMetadataResponse, error)
}

MetadataServiceClient is the client API for MetadataService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type MetadataServiceServer

type MetadataServiceServer interface {
	// Login
	//
	// {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service.
	// It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}".
	//
	// {{import "tables.md"}}
	GetMetadata(context.Context, *GetMetadataRequest) (*GetMetadataResponse, error)
	GetMetadataByFilter(context.Context, *GetMetadataByFilterRequest) (*GetMetadataResponse, error)
	CreateMetadata(context.Context, *CreateMetadataRequest) (*CreateMetadataResponse, error)
	// contains filtered or unexported methods
}

MetadataServiceServer is the server API for MetadataService service. All implementations must embed UnimplementedMetadataServiceServer for forward compatibility

type UnimplementedFranchiseServiceServer

type UnimplementedFranchiseServiceServer struct {
}

UnimplementedFranchiseServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedFranchiseServiceServer) CreateFranchise

func (UnimplementedFranchiseServiceServer) GetFranchise

func (UnimplementedFranchiseServiceServer) GetFranchiseByFilter

func (UnimplementedFranchiseServiceServer) UpdateFranchise

type UnimplementedMetadataServiceServer

type UnimplementedMetadataServiceServer struct {
}

UnimplementedMetadataServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedMetadataServiceServer) CreateMetadata

func (UnimplementedMetadataServiceServer) GetMetadata

func (UnimplementedMetadataServiceServer) GetMetadataByFilter

type UnsafeFranchiseServiceServer

type UnsafeFranchiseServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeFranchiseServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FranchiseServiceServer will result in compilation errors.

type UnsafeMetadataServiceServer

type UnsafeMetadataServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeMetadataServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MetadataServiceServer will result in compilation errors.

type UpdateFranchiseRequest

type UpdateFranchiseRequest struct {
	Id        uint32     `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Franchise *Franchise `protobuf:"bytes,2,opt,name=franchise,proto3" json:"franchise,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateFranchiseRequest) Descriptor deprecated

func (*UpdateFranchiseRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateFranchiseRequest.ProtoReflect.Descriptor instead.

func (*UpdateFranchiseRequest) GetFranchise

func (x *UpdateFranchiseRequest) GetFranchise() *Franchise

func (*UpdateFranchiseRequest) GetId

func (x *UpdateFranchiseRequest) GetId() uint32

func (*UpdateFranchiseRequest) ProtoMessage

func (*UpdateFranchiseRequest) ProtoMessage()

func (*UpdateFranchiseRequest) ProtoReflect

func (x *UpdateFranchiseRequest) ProtoReflect() protoreflect.Message

func (*UpdateFranchiseRequest) Reset

func (x *UpdateFranchiseRequest) Reset()

func (*UpdateFranchiseRequest) String

func (x *UpdateFranchiseRequest) String() string

type UpdateFranchiseResponse

type UpdateFranchiseResponse struct {
	Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateFranchiseResponse) Descriptor deprecated

func (*UpdateFranchiseResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateFranchiseResponse.ProtoReflect.Descriptor instead.

func (*UpdateFranchiseResponse) GetError

func (x *UpdateFranchiseResponse) GetError() string

func (*UpdateFranchiseResponse) ProtoMessage

func (*UpdateFranchiseResponse) ProtoMessage()

func (*UpdateFranchiseResponse) ProtoReflect

func (x *UpdateFranchiseResponse) ProtoReflect() protoreflect.Message

func (*UpdateFranchiseResponse) Reset

func (x *UpdateFranchiseResponse) Reset()

func (*UpdateFranchiseResponse) String

func (x *UpdateFranchiseResponse) String() string

Jump to

Keyboard shortcuts

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