rangerguard

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_hello_proto protoreflect.FileDescriptor

Functions

func NewHelloWorldServer

func NewHelloWorldServer(handler HelloWorld, opts ...HelloWorldServerOption) http.Handler

Types

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type HelloReq

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

func (*HelloReq) Descriptor deprecated

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

Deprecated: Use HelloReq.ProtoReflect.Descriptor instead.

func (*HelloReq) GetSubject

func (x *HelloReq) GetSubject() string

func (*HelloReq) ProtoMessage

func (*HelloReq) ProtoMessage()

func (*HelloReq) ProtoReflect

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

func (*HelloReq) Reset

func (x *HelloReq) Reset()

func (*HelloReq) String

func (x *HelloReq) String() string

type HelloResp

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

func (*HelloResp) Descriptor deprecated

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

Deprecated: Use HelloResp.ProtoReflect.Descriptor instead.

func (*HelloResp) GetText

func (x *HelloResp) GetText() string

func (*HelloResp) ProtoMessage

func (*HelloResp) ProtoMessage()

func (*HelloResp) ProtoReflect

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

func (*HelloResp) Reset

func (x *HelloResp) Reset()

func (*HelloResp) String

func (x *HelloResp) String() string

type HelloWorld

type HelloWorld interface {
	Hello(context.Context, *HelloReq) (*HelloResp, error)
	Info(context.Context, *Empty) (*Tags, error)
}

type HelloWorldClient

type HelloWorldClient struct {
	ranger.Client
	// contains filtered or unexported fields
}

func NewHelloWorldClient

func NewHelloWorldClient(addr string, client ranger.HTTPClient, plugins ...ranger.ClientPlugin) (*HelloWorldClient, error)

func (*HelloWorldClient) Hello

func (c *HelloWorldClient) Hello(ctx context.Context, in *HelloReq) (*HelloResp, error)

func (*HelloWorldClient) Info

func (c *HelloWorldClient) Info(ctx context.Context, in *Empty) (*Tags, error)

type HelloWorldServer

type HelloWorldServer struct {
	// contains filtered or unexported fields
}

func (*HelloWorldServer) Hello

func (p *HelloWorldServer) Hello(ctx context.Context, reqBytes *[]byte) (pb.Message, error)

func (*HelloWorldServer) Info

func (p *HelloWorldServer) Info(ctx context.Context, reqBytes *[]byte) (pb.Message, error)

type HelloWorldServerImpl

type HelloWorldServerImpl struct{}

func (*HelloWorldServerImpl) Hello

func (s *HelloWorldServerImpl) Hello(ctx context.Context, req *HelloReq) (*HelloResp, error)

func (*HelloWorldServerImpl) Info

func (s *HelloWorldServerImpl) Info(ctx context.Context, req *Empty) (*Tags, error)

type HelloWorldServerOption

type HelloWorldServerOption func(s *HelloWorldServer)

func WithUnknownFieldsForHelloWorldServer

func WithUnknownFieldsForHelloWorldServer() HelloWorldServerOption

type Keystore

type Keystore struct {
	// contains filtered or unexported fields
}

func NewKeystore

func NewKeystore() *Keystore

func (*Keystore) Get

func (ks *Keystore) Get(key string) (*x509.Certificate, error)

func (*Keystore) Load

func (ks *Keystore) Load(file string) error

type Tags

type Tags struct {
	Tags map[string]string `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Tags) Descriptor deprecated

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

Deprecated: Use Tags.ProtoReflect.Descriptor instead.

func (*Tags) GetTags

func (x *Tags) GetTags() map[string]string

func (*Tags) ProtoMessage

func (*Tags) ProtoMessage()

func (*Tags) ProtoReflect

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

func (*Tags) Reset

func (x *Tags) Reset()

func (*Tags) String

func (x *Tags) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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