plugin

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	*protogen.File
	Services []*Service
	Messages []*Message
	Config   *validate.Configuration
	// contains filtered or unexported fields
}

func NewFile

func NewFile(p *protogen.Plugin, f *protogen.File, c *validate.Configuration) (*File, error)

func (*File) Generate

func (f *File) Generate() error

func (*File) Validate

func (f *File) Validate() error

type Message

type Message struct {
	*protogen.Message
	Manager *validate.Manager
}

func NewMessage

func NewMessage(b *validate.Manager, m *protogen.Message) *Message

func (*Message) ContainsValidatePrograms

func (m *Message) ContainsValidatePrograms() bool

func (*Message) Validate

func (m *Message) Validate() error

type Service

type Service struct {
	*protogen.Service
	Manager *validate.Manager
}

func NewService

func NewService(b *validate.Manager, s *protogen.Service) *Service

func (*Service) Validate

func (s *Service) Validate() error

Jump to

Keyboard shortcuts

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